forked from corbindavenport/imageshare
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-prod.yml
38 lines (38 loc) · 872 Bytes
/
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
version: "3"
services:
nginx:
restart: always
build:
context: .
dockerfile: nginx/production/Dockerfile
environment:
NGINX_ENVSUBST_TEMPLATE_SUFFIX: ".conf"
DOMAIN: ${DOMAIN}
ports:
- 80:80
- 443:443
networks:
- internal
volumes:
- ./nginx/production/templates:/etc/nginx/templates/
- ./data/:/var/www/html/
- ./logs/nginx:/var/log/nginx/
- ./certbot/www:/var/www/certbot/:ro
- ./certbot/conf/:/etc/nginx/ssl/:ro
certbot:
image: certbot/certbot:latest
volumes:
- ./certbot/www/:/var/www/certbot/:rw
- ./certbot/conf/:/etc/letsencrypt/:rw
php:
restart: always
build:
context: .
dockerfile: php/Dockerfile-production
environment:
API_KEY: ${API_KEY}
networks:
- internal
networks:
internal:
driver: bridge