-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (41 loc) · 964 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
38
39
40
41
42
43
version: '3.9'
services:
web:
image: gradle:7.4.2-jdk17-alpine
command: ['sh', 'runDev.sh']
working_dir: /app
restart: always
ports:
- '8080:8080'
- '5005:5005'
environment:
- TZ=Europe/Zurich
- WT_DATABASE_HOST=database
- WT_DATABASE_PORT=3306
volumes:
- .:/app
- gradle.global-cache:/home/gradle/.gradle
- /etc/localtime:/etc/localtime:ro
depends_on:
- database
env_file:
- .env
database:
image: mysql:8.0
command:
- '--default-authentication-plugin=mysql_native_password'
restart: always
environment:
- MYSQL_DATABASE=${WT_DATABASE_NAME}
- MYSQL_USER=${WT_DATABASE_USERNAME}
- MYSQL_PASSWORD=${WT_DATABASE_PASSWORD}
- MYSQL_ROOT_PASSWORD=${WT_DATABASE_ROOT_PASSWORD}
ports:
- '8081:3306'
volumes:
- database:/var/lib/mysql
env_file:
- .env
volumes:
database:
gradle.global-cache: