-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
39 lines (37 loc) · 883 Bytes
/
docker-compose.yaml
File metadata and controls
39 lines (37 loc) · 883 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
37
name: games
services:
games-db:
image: mariadb:11.3.2
container_name: games-db
restart: always
environment:
MYSQL_USER: $MARIADB_USER
MYSQL_PASSWORD: $GAMES_DATABASE_PASSWORD
MYSQL_DATABASE: $MARIADB_DATABASE
MYSQL_PORT: 3306
MYSQL_ROOT_PASSWORD: $MARIADB_ROOT_PASSWORD
ports:
- "3306:3306"
healthcheck:
test: [ CMD, healthcheck.sh, --connect, --innodb_initialized ]
interval: 5s
timeout: 3s
retries: 3
networks:
- network-games
games-api:
image: games-api
container_name: games-api
ports:
- "8085:8085"
depends_on:
games-db:
condition: service_healthy
environment:
GAMES_DATABASE_PASSWORD: $GAMES_DATABASE_PASSWORD
SPRING_PROFILES_ACTIVE: $PROFILE
networks:
- network-games
networks:
network-games:
driver: bridge