-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (48 loc) · 1.41 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
web:
image: node:latest
restart: always
environment:
- MAIL_USERNAME
- MAIL_PASSWORD
volumes:
- ./server:/var/www/callie
working_dir: /var/www/callie
ports:
- "5000:5000"
command: npm start
nginx:
image: nginx:latest
restart: always
ports:
- "80:80"
- "443:443"
volumes:
- ./build:/usr/share/nginx/html
- ./cali.config:/etc/nginx/conf.d/default.conf
- /etc/letsencrypt:/etc/letsencrypt
- /etc/ssl/certs:/etc/ssl/certs:ro
- ./nginx-snippets/ssl-domains.conf:/etc/nginx/snippets/ssl-domains.conf
- ./nginx-snippets/ssl-params.conf:/etc/nginx/snippets/ssl-params.conf
build:
image: node:latest
working_dir: /data
command: npm run build
volumes:
- ./:/data
- ./node_modules:/data/node_modules
renew_certs:
image: nginx:latest
ports:
- "80:80"
- "443:443"
volumes:
- ./build:/usr/share/nginx/html
- ./cali.config:/etc/nginx/conf.d/default.conf
- /etc/letsencrypt:/etc/letsencrypt
command: /root/renew_certs.sh
# Generate certs from LetsEncrypt
# Inside running nginx, follow steps:
# - echo "deb http://httpredir.debian.org/debian jessie-backports main" > /etc/apt/sources.list.d/sources.list
# - apt-get update
# - apt-get install certbot -t jessie-backports
# - certbot certonly --webroot -w /usr/share/nginx/html -d violetfunparkparty.com -d www.violetfunparkparty.com -d calinoracation.com -d www.calinoracation.com