-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy pathdocker-compose-prod.yml
41 lines (41 loc) · 1.17 KB
/
docker-compose-prod.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
version: "3.7"
services:
certbot:
image: certbot/certbot
volumes:
- ./docker/certbot/conf:/etc/letsencrypt
- ./docker/certbot/www:/var/www/certbot
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
listener-social:
build:
dockerfile: Dockerfile
networks:
- internet # to poll google cloud
listener-login:
build:
dockerfile: Dockerfile
environment:
COMPANY_NAME: ${COMPANY_NAME}
nginx:
build:
args:
NGINX_USERNAME: ${NGINX_USERNAME}
NGINX_PASSWORD: ${NGINX_PASSWORD}
context: ./manuka-client
command: '/bin/sh -c ''while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g "daemon off;"'''
ports:
- 80:80
- 443:443
- 8080:8080
volumes:
- ./docker/nginx/nginx.prod.conf:/etc/nginx/nginx.conf:ro
- ./docker/certbot/conf:/etc/letsencrypt
- ./docker/certbot/www:/var/www/certbot
postgres:
environment:
PGDATA: /var/lib/postgresql/data/pgdata
volumes:
- "./docker/postgres/data:/var/lib/postgresql/data"
server:
networks:
- internet # to poll pastebin API