-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
40 lines (40 loc) · 1.08 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
version: '3'
services:
app:
build: ./app
expose:
- "8080"
env_file:
- ./app.env
volumes:
- ./app/prisma:/home/node/app/prisma
# depends_on:
# - db
#db:
# image: "postgres:alpine"
# restart: always
# volumes:
# - ./postgres-data:/var/lib/postgresql/data
# env_file:
# - ./db.env
# networks:
# internal:
nginx:
build: ./shibboleth
command: "/bin/sh -c '/usr/bin/supervisord; /etc/init.d/shibd restart; while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
ports:
- "80:80"
- "443:443"
volumes:
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
- ./data/shib/sp-cert.pem:/etc/shibboleth/sp-cert.pem
- ./data/shib/sp-key.pem:/etc/shibboleth/sp-key.pem
depends_on:
- app
certbot:
image: certbot/certbot
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
volumes:
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot