-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (34 loc) · 894 Bytes
/
docker-compose.yml
File metadata and controls
36 lines (34 loc) · 894 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:
db:
image: mysql:8.0
restart: always
container_name: group_finder_db
environment:
MYSQL_DATABASE: groupfinder
MYSQL_ROOT_PASSWORD: secret
ports:
- "3306:3306"
healthcheck:
test: [ "CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-psecret" ]
interval: 10s
timeout: 5s
retries: 10
start_period: 30s
app:
build: .
depends_on:
db:
condition: service_healthy
container_name: group_finder_app
ports:
- "8080:8080"
environment:
DB_URL: jdbc:mysql://db:3306/groupfinder
DB_USER: root
DB_PASSWORD: secret
DB_DRIVER: com.mysql.cj.jdbc.Driver
JWT_SECRET: 3cfa76ef14937c1c0ea519f8fc057a80fcd04a7420f8e8bcd0a7567c272e007b
JWT_EXPIRATION: 3600000
#volumes:
#db_data: if need persistent Db when compose up/down