-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
102 lines (81 loc) · 2.29 KB
/
docker-compose.yml
File metadata and controls
102 lines (81 loc) · 2.29 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: '2.4'
services:
app:
image: ghcr.io/hharck/voteserver:main
restart: always
ports:
- '8080:8080'
# user: '0' # uncomment to run as root for testing purposes even though Dockerfile defines 'vapor' user.
command: ["serve", "--env", "production", "--hostname", "0.0.0.0", "--port", "8080"]
networks:
- vote
- proxy
depends_on:
- proxy-ssl
stdin_open: true
tty: true
environment:
- LOG_LEVEL=info
- VIRTUAL_HOST=${VIRTUAL_HOST}
- LETSENCRYPT_HOST=${LETSENCRYPT_HOST}
- LETSENCRYPT_EMAIL=${LETSENCRYPT_EMAIL}
- maxNameLength=${maxNameLength-100}
- joinPhraseLength=${joinPhraseLength-6}
- maxChatLength=${maxChatLength-1000}
- chatQueryLimit=${chatQueryLimit-100}
- chatRateLimitingSeconds=${chatRateLimitingSeconds-10.0}
- chatRateLimitingMessages=${chatRateLimitingMessages-10}
- defaultValueForUnverifiedConstituents=${defaultValueForUnverifiedConstituents-false}
- enableChat=${enableChat-true}
- adminProfilePicture=${adminProfilePicture-"/img/icon.png"}
###################
## - Proxy
###################
proxy:
# Reverse Proxy for exposing services to the WWW.
image: nginxproxy/nginx-proxy
container_name: proxy
restart: unless-stopped
volumes:
- /opt/conf:/etc/nginx/conf.d
- /opt/vhost:/etc/nginx/vhost.d
- /opt/html:/usr/share/nginx/html
- /opt/dhparam:/etc/nginx/dhparam
- /opt/certs:/etc/nginx/certs:ro
- /var/run/docker.sock:/tmp/docker.sock:ro
environment:
- TZ=Europe/Amsterdam
networks:
- proxy
ports:
- '80:80'
- '443:443'
proxy-ssl:
# SSL Automator for nginx-proxy. Auto-detects container's SSL Needs.
image: nginxproxy/acme-companion
container_name: proxy-ssl
restart: unless-stopped
volumes_from:
- proxy
volumes:
- /opt/certs:/etc/nginx/certs:rw
- /opt/acme:/etc/acme.sh
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
- TZ=Europe/Amsterdam
- DEFAULT_EMAIL=admin@smkid.dk
networks:
- proxy-ssl
depends_on:
- proxy
networks:
proxy:
proxy-ssl:
vote:
volumes:
conf:
vhost:
html:
dhparam:
certs:
acme: