-
Notifications
You must be signed in to change notification settings - Fork 84
/
docker-compose.prod.yml
79 lines (72 loc) · 1.8 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
70
71
72
73
74
75
76
77
78
79
version: "3.7"
services:
app:
restart: unless-stopped
image: "ghcr.io/emfcamp/website:latest"
networks:
- emfweb
depends_on:
- postgres
- memcached
ports:
- "127.0.0.1:8000:8000"
volumes:
- /etc/emf-site.cfg:/app/config/production.cfg
- /etc/emf:/etc/emf
- /var/lib/emf_vat_invoices:/vat_invoices
labels:
com.centurylinklabs.watchtower.enable: true
environment:
SETTINGS_FILE: ./config/production.cfg
IRCCAT: irccat.orga.emfcamp.org:12345
logging:
driver: journald
postgres:
restart: unless-stopped
image: 'postgis/postgis:16-3.4-alpine'
volumes:
- /var/lib/emfweb-postgres:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: postgres
networks:
- emfweb
postgres-exporter:
restart: unless-stopped
image: 'wrouesnel/postgres_exporter:v0.8.0'
environment:
DATA_SOURCE_NAME: "postgresql://postgres:postgres@postgres:5432/emf_site?sslmode=disable"
networks:
- emfweb
ports:
- "9187:9187"
memcached:
restart: unless-stopped
image: 'memcached:1.6.13-alpine'
networks:
- emfweb
command: memcached -m 64
memcached-exporter:
restart: unless-stopped
image: 'prom/memcached-exporter:v0.9.0'
depends_on:
- memcached
networks:
- emfweb
ports:
- "9150:9150"
command: --memcached.address memcached:11211
static:
restart: unless-stopped
image: "ghcr.io/emfcamp/website-static:latest"
labels:
com.centurylinklabs.watchtower.enable: true
ports:
- "127.0.0.1:8080:80"
watchtower:
restart: unless-stopped
image: "containrrr/watchtower"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: --interval 30 --label-enable
networks:
emfweb: