forked from tryethernal/ethernal
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.prod.yml
69 lines (61 loc) · 1.3 KB
/
docker-compose.prod.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
version: '3.9'
networks:
ethernal:
driver: bridge
volumes:
db:
driver: local
redis:
driver: local
services:
postgres:
networks:
- ethernal
image: postgres:14.1-alpine
restart: always
env_file: .env.prod
volumes:
- db:/var/lib/postgresql/data
redis:
networks:
- ethernal
image: redis:6.2-alpine
restart: always
command: redis-server --save 20 1 --loglevel warning
volumes:
- redis:/data
web: &backend
networks:
- ethernal
container_name: web
depends_on:
- postgres
- redis
pull_policy: always
restart: always
ports:
- '8888:8888'
image: antoinedc44/ethernal:latest
command: /bin/sh ./web_entrypoint.sh
env_file: .env.prod
links:
- postgres
- redis
high_priority_worker:
<<: *backend
container_name: highPriority
ports: []
image: antoinedc44/ethernal:latest
command: node workers/highPriority.js
medium_priority_worker:
<<: *backend
container_name: mediumPriority
ports: []
image: antoinedc44/ethernal:latest
command: node workers/mediumPriority.js
low_priority_worker:
<<: *backend
container_name: lowPriority
ports: []
image: antoinedc44/ethernal:latest
command: node workers/lowPriority.js