-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (33 loc) · 806 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
36 lines (33 loc) · 806 Bytes
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
version: "3.8"
services:
mysqldb:
image: mysql:8.0.29-debian
restart: unless-stopped
env_file: ./.env
environment:
- MYSQL_ROOT_PASSWORD=$MYSQLDB_ROOT_PASSWORD
- MYSQL_DATABASE=$MYSQLDB_DATABASE
ports:
- $MYSQLDB_LOCAL_PORT:$MYSQLDB_DOCKER_PORT
volumes:
- db:/var/lib/mysql
app:
depends_on:
- mysqldb
image: <<your-gitlab-image>>
restart: on-failure
env_file: ./.env
ports:
- $SPRING_LOCAL_PORT:$SPRING_DOCKER_PORT
environment:
SPRING_APPLICATION_JSON: '{
"spring.r2dbc.url" : "r2dbc:mysql://mysqldb:3306/payroll",
"spring.r2dbc.username" : "root",
"spring.r2dbc.password" : "mysqlpassword"
}'
volumes:
- .m2:/root/.m2
stdin_open: true
tty: true
volumes:
db: