-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yml
65 lines (60 loc) · 1.29 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
version: '3'
services:
redis:
image: redis
restart: always
networks:
- backend
volumes:
- ${TRYZEEK_DATA:-./tryzeek_data}:/data
worker:
build: manager
command: rq worker --with-scheduler --url redis://redis
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /brostuff:/brostuff
restart: always
deploy:
replicas: 5
depends_on:
- redis
networks:
- backend
version-updater:
build: manager
command: python3 version.py -i 4020
init: true
volumes:
- /var/run/docker.sock:/var/run/docker.sock
restart: always
depends_on:
- redis
networks:
- backend
api:
build: manager
command: gunicorn -w 4 -b 0.0.0.0 app:app --log-file - --max-requests 500 --timeout 20
restart: always
depends_on:
- redis
networks:
- backend
- frontend
proxy:
image: caddy
restart: always
environment:
- ACME_AGREE=true
- ENABLE_TELEMETRY=false
- SITE_ADDRESS=${SITE_ADDRESS:-try.zeek.org:443, try.bro.org:443}
volumes:
- $HOME/.caddy:/data
- ./containers/caddy/Caddyfile.${CADDY-tls}:/etc/caddy/Caddyfile
networks:
- frontend
ports:
- "80:80/tcp"
- "443:443/tcp"
networks:
backend:
frontend: