forked from fpytloun/docker-pulp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
75 lines (75 loc) · 2.1 KB
/
docker-compose.yml
File metadata and controls
75 lines (75 loc) · 2.1 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
version: "3.8"
services:
db:
image: postgres
env_file: ./settings/postgres.env
ports:
- "127.0.0.1:5432:5432"
volumes:
- ./.volume/postgres:/var/lib/postgresql/data # WARNING: postgres is IO heavy and needs fast storage
healthcheck:
test: [ "CMD", "pg_isready", "-U", "pulp" ]
redis:
image: redis
ports:
- "127.0.0.1:6379:6379"
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
api:
image: pulp-api
env_file: ./settings/pulp.env
depends_on:
db: { condition: service_healthy }
redis: { condition: service_healthy }
ports:
- "24817:24817"
volumes:
- ./.volume/pulp:/var/lib/pulp
- ./settings/pulp.py:/etc/pulp/settings.py:ro
healthcheck:
test: [ "CMD", "curl", "--fail", "http://localhost:24817/pulp/api/v3/status/" ]
content:
image: pulp-content
env_file: ./settings/pulp.env
depends_on:
db: { condition: service_healthy }
api: { condition: service_healthy }
ports:
- "24816"
volumes:
- ./.volume/pulp:/var/lib/pulp
- ./settings/pulp.py:/etc/pulp/settings.py:ro
healthcheck:
test: [ "CMD", "curl", "--fail", "http://localhost:24816/pulp/content/" ]
deploy:
replicas: 4
resource-manager:
image: pulp-resource-manager
env_file: ./settings/pulp.env
depends_on:
db: { condition: service_healthy }
api: { condition: service_healthy }
redis: { condition: service_healthy }
volumes:
- ./.volume/pulp:/var/lib/pulp
- ./settings/pulp.py:/etc/pulp/settings.py:ro
worker:
image: pulp-worker
env_file: ./settings/pulp.env
depends_on:
db: { condition: service_healthy }
api: { condition: service_healthy }
redis: { condition: service_healthy }
volumes:
- ./.volume/pulp:/var/lib/pulp
- ./settings/pulp.py:/etc/pulp/settings.py:ro
deploy:
replicas: 4
content-ingress:
image: nginx
depends_on:
content: { condition: service_healthy }
ports:
- "24816:80"
volumes:
- ./settings/nginx-content-ingress.conf:/etc/nginx/nginx.conf:ro