-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
102 lines (101 loc) · 2.48 KB
/
docker-compose.yml
File metadata and controls
102 lines (101 loc) · 2.48 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
version: '3.8'
services:
postgres:
image: postgres:14.1-alpine
restart: always
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
networks:
meetplan:
aliases:
- postgres
volumes:
- ./MeetPlanDB:/var/lib/postgresql/data
nginx-proxy:
depends_on:
- frontend
- backend
image: nginx:alpine
volumes:
- ./default.conf:/etc/nginx/conf.d/default.conf
- web-root:/var/www/html
- certbot-etc:/etc/letsencrypt
- certbot-var:/var/lib/letsencrypt
- ./dhparam:/etc/ssl/certs
networks:
meetplan:
aliases:
- nginx
ports:
- "80:80"
- "443:443"
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
frontend:
image: ghcr.io/meetplan/frontend
depends_on:
- backend
networks:
meetplan:
aliases:
- frontend
backend:
image: ghcr.io/meetplan/backend
volumes:
- ./config.json:/app/config.json
- ./cacerts:/app/cacerts
- ./protonConfig.json:/app/protonConfig.json
- ./icons:/app/icons
- ./documents:/app/documents
restart: always
depends_on:
- postgres
networks:
meetplan:
aliases:
- backend
certbot:
image: certbot/certbot
container_name: certbot
volumes:
- certbot-etc:/etc/letsencrypt
- certbot-var:/var/lib/letsencrypt
- web-root:/var/www/html
depends_on:
- nginx-proxy
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
fail2ban:
image: crazymax/fail2ban:latest
container_name: fail2ban
restart: "unless-stopped"
network_mode: "host"
cap_add:
- NET_ADMIN
- NET_RAW
volumes:
- "./fail2ban-data:/data"
- "/var/log:/var/log:ro"
- "/var/lib/docker/containers/:/container-logs/:ro"
env_file:
- "./fail2ban.env"
watchtower:
image: containrrr/watchtower
container_name: watchtower
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: --interval 60 --cleanup
depends_on:
- nginx-proxy
- backend
- frontend
- fail2ban
- postgres
profiles:
- debug
networks:
meetplan:
volumes:
certbot-etc:
certbot-var:
web-root: