forked from Vedinsoh/discord-auto-publisher
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.base.yml
More file actions
58 lines (53 loc) · 1.19 KB
/
docker-compose.base.yml
File metadata and controls
58 lines (53 loc) · 1.19 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
services:
discord-proxy:
build:
context: services/discord-proxy
dockerfile: .docker/Dockerfile
restart: unless-stopped
env_file:
- .env
healthcheck:
test: ["CMD", "node", "-e", "fetch('http://localhost:8080/health').catch(()=>process.exit(1))"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
bot:
build:
context: services/bot
dockerfile: .docker/Dockerfile
restart: unless-stopped
env_file:
- .env
depends_on:
rest:
condition: service_started
discord-proxy:
condition: service_healthy
rest:
build:
context: services/rest
dockerfile: .docker/Dockerfile
restart: unless-stopped
env_file:
- .env
depends_on:
rest-cache:
condition: service_started
discord-proxy:
condition: service_healthy
rest-cache:
image: redis:7-alpine
restart: unless-stopped
command: 'redis-server --port 6379'
volumes:
- rest-cache-data:/data
rest-db:
image: mongo:6
restart: unless-stopped
command: mongod --port 27017
volumes:
- rest-db-data:/data/db
volumes:
rest-cache-data:
rest-db-data: