-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (46 loc) · 1.12 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
version: "3.5"
services:
nginx:
image: nginx:latest
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/.htpasswd:/etc/nginx/.htpasswd
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
networks:
cluster:
ipv4_address: 10.0.0.2
certbot:
image: certbot/certbot
volumes:
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
depends_on:
- nginx
entrypoint:
"/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
networks:
cluster:
ipv4_address: 10.0.0.3
flaskapp:
build: ./app
environment:
- AWS_SHARED_CREDENTIALS_FILE=/aws/credentials
- AWS_PROFILE=csloginteacher
- AWS_PROFILE=csloginstudent
volumes:
- ./app/put_yr_credentials_here/credentials:/aws/credentials
depends_on:
- nginx
- certbot
networks:
- cluster
networks:
cluster:
ipam:
driver: default
config:
- subnet: 10.0.0.0/8