-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
executable file
·43 lines (40 loc) · 1002 Bytes
/
docker-compose.prod.yml
File metadata and controls
executable file
·43 lines (40 loc) · 1002 Bytes
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
version: "3.8"
services:
app:
build:
context: .
dockerfile: Dockerfile-prod
user: ${UID}:${GID}
ports:
- 19000:9000
volumes:
- .:/var/www/devlog-mh
- ./docker/app/php.ini-prod:/usr/local/etc/php/php.ini
working_dir: /var/www/devlog-mh
networks:
devlog-net:
ipv4_address: 172.18.0.2
web:
image: nginx:1.19.2-alpine
ports:
- 8080:80
- 8443:443
volumes:
- .:/var/www/devlog-mh
- ./docker/web/etc/nginx/conf.d/default-ssl.conf:/etc/nginx/conf.d/default.conf
- /etc/letsencrypt/live/devlog-mh.com:/etc/letsencrypt/live/devlog-mh.com
- /etc/letsencrypt/archive/devlog-mh.com:/etc/letsencrypt/archive/devlog-mh.com
working_dir: /var/www/devlog-mh
networks:
devlog-net:
ipv4_address: 172.18.0.3
depends_on:
- app
networks:
devlog-net:
name: devlog-net
driver: bridge
ipam:
driver: default
config:
- subnet: 172.18.0.0/24