-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
123 lines (117 loc) · 2.48 KB
/
compose.yaml
File metadata and controls
123 lines (117 loc) · 2.48 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
services:
enigma:
container_name: enigma
image: enigma:latest
build:
context: .
dockerfile: ./docker/enigma/Dockerfile
env_file:
- ".env"
environment:
POSTGRES_HOST: postgres
RABBITMQ_HOST: rabbitmq
volumes:
- ./logs:/app/logs
- ./static:/app/static
restart: no
depends_on:
postgres:
condition: service_healthy
rabbitmq:
condition: service_started
healthcheck:
test: ["CMD-SHELL", "ping localhost -c 2"]
interval: 10s
timeout: 5s
retries: 3
start_interval: 2s
parable:
container_name: parable
image: parable:latest
build:
context: .
dockerfile: ./docker/parable/Dockerfile
ports:
- "5070:5070"
restart: no
env_file:
- ".env"
environment:
DB_URL: enigma-postgres
depends_on:
enigma:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "curl -f -X GET http://localhost:5070/"]
interval: 10s
timeout: 5s
retries: 3
start_period: 30s
discord:
container_name: praxos
image: praxos:latest
build:
context: .
dockerfile: ./docker/praxos/Dockerfile
restart: no
env_file:
- ".env"
environment:
POSTGRES_HOST: postgres
volumes:
- ./logs:/app/logs
depends_on:
enigma:
condition: service_healthy
postgres:
condition: service_healthy
nginx:
container_name: proxy
image: 'nginx-enigma:stable-alpine'
build: docker/nginx
ports:
- "80:80"
restart: unless-stopped
depends_on:
parable:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "curl", "-f", "http://localhost"]
interval: 1m30s
timeout: 10s
retries: 3
start_period: 10s
start_interval: 5s
postgres:
container_name: postgres
image: postgres:alpine
ports:
- "5432:5432"
restart: unless-stopped
env_file:
- ".env"
environment:
POSTGRES_USER: enigma
POSTGRES_DB: enigma
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", 'pg_isready -U enigma']
interval: 5s
retries: 5
timeout: 5s
start_period: 2s
rabbitmq:
container_name: rabbitmq
image: rabbitmq:4.0.4-alpine
ports:
- "5672:5672"
restart: unless-stopped
env_file:
- ".env"
volumes:
- rmqdata:/var/lib/rabbitmq
volumes:
pgdata:
rmqdata:
static: