-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
52 lines (49 loc) · 1.33 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
version: "3.5"
services:
nginx:
image: nginx:stable-alpine
volumes:
- ./data/nginx:/etc/nginx/conf.d
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
- ./data/nginxlog:/var/log/nginx
ports:
- mode: host
protocol: tcp
published: 80
target: 80
- mode: host
protocol: tcp
published: 443
target: 443
depends_on:
- app
deploy:
restart_policy:
condition: any
command: '/bin/sh -c ''while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g "daemon off;"'''
app:
image: gruelbox/orko:latest
volumes:
- ./data/orko/db:/app/db
- ./data/secret:/run/secrets:ro
ports:
- "9090:9090"
environment:
- PROXIED=true
- LOG_LEVEL=INFO
- WHITELIST_EXPIRY_SECONDS=866000
- SIMPLE_AUTH_TOKEN_EXPIRY_MINUTES=7500
- JDBC_URL='h2:file:/app/db/orko;DB_CLOSE_DELAY=-1;DEFAULT_LOCK_TIMEOUT=60000'
deploy:
restart_policy:
condition: any
certbot:
image: certbot/certbot
volumes:
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
deploy:
restart_policy:
condition: any