-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (44 loc) · 927 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
44
45
46
version: '3'
services:
server:
build:
context: .
dockerfile: build/server/Dockerfile
volumes:
- .:/app
tty: true
depends_on:
db:
condition: service_healthy
cache:
condition: service_healthy
ports:
- 8080:8080
db:
build:
context: build/db
dockerfile: Dockerfile
volumes:
- ./build/db/initdb.d:/docker-entrypoint-initdb.d
ports:
- 3306:3306
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-proot"]
interval: 10s
retries: 5
start_period: 10s
timeout: 10s
environment:
MYSQL_ROOT_PASSWORD: root
cache:
build:
context: build/cache
dockerfile: Dockerfile
ports:
- 6379:6379
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
retries: 5
start_period: 10s
timeout: 10s