This repository has been archived by the owner on May 29, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
106 lines (99 loc) · 2.18 KB
/
docker-compose.yml
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
version: "3.9"
services:
nginx:
image: rgolea/baneverywhere-proxy:latest
container_name: baneverywhere-nginx
ports:
- "80:80"
- "443:443"
depends_on:
- api
volumes:
- /etc/letsencrypt/:/etc/letsencrypt/
migration:
image: rgolea/baneverywhere:latest
command: npx prisma migrate deploy
container_name: baneverywhere-migration
tty: true
env_file: /.env
depends_on:
- postgres
api:
image: rgolea/baneverywhere-api:latest
command: node main.js
container_name: api-baneverywhere
stdin_open: true
tty: true
restart: always
expose:
- 3333
env_file: /.env
depends_on:
- postgres
- redis
- migration
bot:
image: rgolea/baneverywhere-bot:latest
command: node main.js
stdin_open: true
tty: true
restart: always
env_file: /.env
depends_on:
- redis
deploy:
mode: replicated
replicas: 2
online-checker:
image: rgolea/baneverywhere-online-checker:latest
command: node main.js
container_name: online-checker-baneverywhere
stdin_open: true
tty: true
restart: always
env_file: /.env
depends_on:
- redis
- postgres
- migration
queue-processor:
image: rgolea/baneverywhere-queue-processor:latest
command: node main.js
container_name: queue-processor-baneverywhere
stdin_open: true
tty: true
restart: always
env_file: /.env
depends_on:
- redis
- postgres
- migration
postgres:
image: postgres:10
container_name: postgres-baneverywhere
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=baneverywhere
expose:
- 5432
volumes:
- /data/postgresql/:/var/lib/postgresql/data
depends_on:
- redis
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis:6.2.6
container_name: redis-baneverywhere
restart: always
command: redis-server
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 1s
timeout: 3s
retries: 30