forked from ls1intum/Artemis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
53 lines (48 loc) · 1.91 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
version: '3'
# NOTE: this docker compose file starts the artemis-server (as jar file) and the artemis-client in separate containers. This setup is aimed for development.
# If you want to start the whole Artemis application (server and client) in the same container, you need to specify a different service and
# you have to execute the command './gradlew -Pprod -Pwar clean bootWar && java -jar build/libs/*.war --spring.profiles.active=dev,artemis,bamboo,bitbucket,jira'
services:
artemis-server:
command: sh -c "(apt update && apt install -y fontconfig ttf-dejavu graphviz || true) && ./gradlew buildJarForDocker && java -jar --add-exports java.naming/com.sun.jndi.ldap=ALL-UNNAMED build/libs/Artemis-*.jar"
depends_on:
- artemis-mysql
image: openjdk:17-jdk-buster
environment:
- SPRING_DATASOURCE_URL=jdbc:mysql://artemis-mysql:3306/Artemis?createDatabaseIfNotExist=true&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=utf8&useSSL=false&useLegacyDatetimeCode=false&serverTimezone=UTC
- SPRING_PROFILES_ACTIVE=dev,bamboo,bitbucket,jira,artemis,scheduling
networks:
- artemis
ports:
- 8080:8080
volumes:
- ./:/server/
working_dir: /server
artemis-client:
command: sh -c "npm install && npm run start-docker"
depends_on:
- artemis-server
image: node:14.17.6-alpine
networks:
- artemis
ports:
- 9000:9000
volumes:
- ./:/client/
working_dir: /client
artemis-mysql:
command: mysqld --lower_case_table_names=1 --skip-ssl --character_set_server=utf8mb4 --collation-server=utf8mb4_unicode_ci --explicit_defaults_for_timestamp
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
- MYSQL_ROOT_PASSWORD=
- MYSQL_DATABASE=Artemis
image: mysql:8.0.30
networks:
- artemis
ports:
- 3306:3306
volumes:
- ./data/.db:/var/lib/mysql
networks:
artemis:
driver: bridge