-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
75 lines (70 loc) · 1.56 KB
/
docker-compose.yml
File metadata and controls
75 lines (70 loc) · 1.56 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: dir
services:
apiserver:
build:
context: ../../
dockerfile: server/Dockerfile
env_file:
- ./apiserver.env
ports:
- 8888:8888 # DIR API server
- 8080:8080 # OCI HTTP server
depends_on:
zot:
condition: service_started
postgres:
condition: service_healthy
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: on-failure
healthcheck:
test: grpc-health-probe -addr=127.0.0.1:8888 || exit 1
interval: 10s
retries: 60
start_period: 60s
reconciler:
build:
context: ../../
dockerfile: reconciler/Dockerfile
env_file:
- ./reconciler.env
depends_on:
- zot
- postgres
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: on-failure
zot:
image: ghcr.io/project-zot/zot:v2.1.15
ports:
- 5555:5000
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: on-failure
postgres:
image: docker.io/bitnami/postgresql@sha256:e8b68936d05ee665974430bb4765fedcdc5c9ba399e133e120e2deed77f54dbf
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: directory
ports:
- 5432:5432
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: on-failure
healthcheck:
test: pg_isready -U postgres -d directory || exit 1
interval: 10s
retries: 60
start_period: 10s
networks:
default:
name: dir-network