forked from ls1intum/Artemis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
37 lines (34 loc) · 895 Bytes
/
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
version: '3'
services:
artemis-app:
build:
context: .
dockerfile: ./docker/app/Dockerfile
command: ./gradlew bootRun
depends_on:
- artemis-mysql
environment:
- SPRING_DATASOURCE_URL=jdbc:mysql://artemis-mysql:3306/artemis?useUnicode=true&characterEncoding=utf8&useSSL=false
- SPRING_PROFILES_ACTIVE=dev,bamboo,bitbucket,jira,artemis
networks:
- artemis
ports:
- 8080:8080
volumes:
- ./:/app/
artemis-mysql:
command: mysqld --lower_case_table_names=1 --skip-ssl --character_set_server=utf8mb4 --explicit_defaults_for_timestamp
environment:
- MYSQL_USER=root
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
- MYSQL_DATABASE=artemis
image: mysql:5.7.20
networks:
- artemis
ports:
- 3306:3306
volumes:
- ./data/.db:/var/lib/mysql
networks:
artemis:
driver: bridge