-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
53 lines (51 loc) · 995 Bytes
/
Copy pathdocker-compose.yaml
File metadata and controls
53 lines (51 loc) · 995 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
services:
archive-api:
build: .
ports:
- "9000:9000"
volumes:
- ./.env.local:/app/.env
- .local-secrets:/secrets:ro
environment:
- GIN_MODE=debug
networks:
- archive-api
- db
restart: unless-stopped
depends_on:
db:
condition: service_healthy
healthcheck:
test:
[
"CMD",
"wget",
"--quiet",
"--tries=1",
"--spider",
"http://localhost:9000/api/v1/health",
]
interval: 30s
timeout: 10s
retries: 3
db:
image: "mysql"
restart: unless-stopped
env_file:
- ./.env.local
volumes:
- mysql_data:/var/lib/mysql
- .local-secrets:/secrets:ro
networks:
- db
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "--silent"]
interval: 5s
timeout: 3s
retries: 8
start_period: 0s
volumes:
mysql_data:
networks:
archive-api:
db: