-
Notifications
You must be signed in to change notification settings - Fork 71
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
135 lines (124 loc) · 2.78 KB
/
docker-compose.prod.yml
File metadata and controls
135 lines (124 loc) · 2.78 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
124
125
126
127
128
129
130
131
132
133
134
135
networks:
ethernal:
driver: bridge
volumes:
db:
driver: local
redis:
driver: local
caddy_data:
driver: local
caddy_config:
driver: local
services:
postgres:
networks:
- ethernal
image: timescale/timescaledb:2.11.1-pg14
container_name: postgres
restart: always
env_file: .env.postgres.prod
volumes:
- db:/var/lib/postgresql/data
- ./postgresql.conf:/etc/postgresql/postgresql.conf
command: postgres -c config_file=/etc/postgresql/postgresql.conf
soketi:
image: quay.io/soketi/soketi:1.6.1-16-debian
container_name: soketi
env_file: .env.soketi.prod
networks:
- ethernal
redis:
networks:
- ethernal
image: redis:6.2-alpine
container_name: redis
restart: always
command: redis-server --save 20 1 --loglevel warning
volumes:
- redis:/data
frontend:
networks:
- ethernal
image: antoinedc44/ethernal-frontend:latest
container_name: frontend
restart: always
backend:
networks:
- ethernal
image: antoinedc44/ethernal-backend:latest
container_name: backend
depends_on:
- postgres
- redis
restart: always
env_file: ./run/.env.prod
high_priority_worker:
networks:
- ethernal
container_name: highPriority
depends_on:
- postgres
- redis
restart: always
image: antoinedc44/ethernal-backend:latest
command: node workers/highPriority.js
env_file: ./run/.env.prod
medium_priority_worker:
networks:
- ethernal
container_name: mediumPriority
depends_on:
- postgres
- redis
restart: always
image: antoinedc44/ethernal-backend:latest
command: node workers/mediumPriority.js
env_file: ./run/.env.prod
low_priority_worker:
networks:
- ethernal
container_name: lowPriority
depends_on:
- postgres
- redis
restart: always
image: antoinedc44/ethernal-backend:latest
command: node workers/lowPriority.js
env_file: ./run/.env.prod
pm2:
networks:
- ethernal
image: antoinedc44/ethernal-pm2:latest
container_name: pm2
env_file: ./pm2-server/.env.prod
depends_on:
- backend
pgbouncer:
image: edoburu/pgbouncer
container_name: pgbouncer
env_file: ./pgbouncer/.env.pgbouncer.prod
ports:
- "5433:5433"
volumes:
- ./pgbouncer/:/etc/pgbouncer:ro
depends_on:
- postgres
networks:
- ethernal
caddy:
image: caddy:2-alpine
container_name: caddy
networks:
- ethernal
depends_on:
- backend
- frontend
- soketi
ports:
- "${EXPOSED_PORT}:80"
- "${EXPOSED_SSL_PORT}:443"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- caddy_data:/data
- caddy_config:/config