-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose-prod.yml
40 lines (40 loc) · 962 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
39
40
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:
IMGUR_KEY: ${IMGUR_KEY}
IMGBB_KEY: ${IMGBB_KEY}
DOMAIN: ${DOMAIN}
PLAUSIBLE_DOMAIN: ${PLAUSIBLE_DOMAIN}
networks:
- internal
networks:
internal:
driver: bridge