-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yml
59 lines (56 loc) · 1.07 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
version: '3.7'
networks:
web:
external: true
volumes:
db: {}
redis: {}
storage: {}
clamav: {}
services:
app:
image: stwon/collect
env_file: .env
volumes:
- storage:/app/storage
restart: always
networks:
- web
- default
expose:
- 80
labels:
- "traefik.enable=true"
- "traefik.http.routers.collect.rule=Host(`your-domain.com`)"
- "traefik.http.routers.collect.tls.certresolver=default"
worker:
image: stwon/collect
env_file: .env
volumes:
- storage:/app/storage
command: worker
restart: always
scheduler:
image: stwon/collect
env_file: .env
volumes:
- storage:/app/storage
command: scheduler
restart: always
db:
image: postgres:13-alpine
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
volumes:
- db:/var/lib/postgresql/data
restart: always
redis:
image: redis:alpine
volumes:
- redis:/data
restart: always
clam:
image: stwon/docker-clamav
volumes:
- clamav:/data
restart: always