-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (38 loc) · 1.11 KB
/
docker-compose.yml
File metadata and controls
41 lines (38 loc) · 1.11 KB
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
services:
frontend:
build:
context: .
dockerfile: .config/Dockerfile
image: repomanager-1.0.0
container_name: repomanager-frontend
entrypoint: sh -c
command: /app/.config/entrypoint/manager.sh
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:3000/api/check"]
interval: 1s
retries: 360
depends_on:
repomanager-db:
condition: service_healthy
worker:
image: repomanager-1.0.0
container_name: repomanager-worker
entrypoint: sh -c
command: /app/.config/entrypoint/worker.sh
depends_on:
frontend:
condition: service_healthy
repomanager-db:
image: mysql
container_name: repomanager-db
cap_add:
- SYS_NICE
healthcheck:
test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost" ]
timeout: 5s
interval: 5s
retries: 40
volumes:
- mysql:/var/lib/mysql
volumes:
mysql: