-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathdocker-compose.yml
45 lines (42 loc) · 1.27 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
version: '3.5'
services:
db:
image: mysql:8.0.35
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_general_ci
environment:
MYSQL_ROOT_PASSWORD: s3cret
MYSQL_DATABASE: dp
MYSQL_USER: dp
MYSQL_PASSWORD: dp
volumes:
- ./db:/var/lib/mysql
drop-project:
image: pedroalv3s/drop-project:v0.9.8
restart: "on-failure"
environment:
SPRING_PROFILES_ACTIVE: mysql
SPRING_CONFIG_ADDITIONAL-LOCATION: /usr/src/app/conf/
DP_CONFIG_LOCATION: /usr/src/app/conf/
DB_URL: jdbc:mysql://db:3306/dp?connectTimeout=0&socketTimeout=0&autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=UTC
DB_USERNAME: dp
DB_PASSWORD: dp
SERVER_SERVLET_CONTEXT_PATH: /dp-test
volumes:
- ./conf:/usr/src/app/conf
- ./submissions:/usr/src/app/submissions
- ./assignments:/usr/src/app/assignments
- ./mavenized-projects:/usr/src/app/mavenized-projects
ports:
- "8080:8080"
links:
- db
phpmyadmin:
image: phpmyadmin/phpmyadmin:latest
restart: always
depends_on:
- db
environment:
PMA_HOST: db
MYSQL_ROOT_PASSWORD: s3cret
ports:
- "8096:80"