-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (46 loc) · 1.1 KB
/
Copy pathdocker-compose.yml
File metadata and controls
49 lines (46 loc) · 1.1 KB
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
services:
php:
image: php:8.2-fpm-alpine
container_name: submonitor-php
user: root
restart: always
volumes:
- ./html:/opt/SubMonitor/html
- ./nginx:/etc/nginx/conf.d
- ./rules:/opt/SubMonitor/rules
- ./ssl:/etc/nginx/ssl
- log-data:/var/log/nginx
networks:
- submonitor-net
nginx:
image: nginx:alpine
container_name: submonitor-nginx
restart: always
ports:
- "80:80"
- "443:443"
volumes:
- ./html:/opt/SubMonitor/html
- ./nginx:/etc/nginx/conf.d
- ./rules:/opt/SubMonitor/rules
- ./ssl:/etc/nginx/ssl
- ./entrypoint.sh:/entrypoint.sh
- log-data:/var/log/nginx
depends_on:
- php
networks:
- submonitor-net
entrypoint: [
"sh", "-c",
"chmod +x /entrypoint.sh && chmod -R 777 /opt/SubMonitor/html /etc/nginx/conf.d /opt/SubMonitor/rules /etc/nginx/ssl && /entrypoint.sh"
]
volumes:
log-data:
networks:
submonitor-net:
driver: bridge
enable_ipv6: true
ipam:
config:
- subnet: 172.18.0.0/16
- subnet: 2001:db8:1::/64