-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
45 lines (44 loc) · 1.14 KB
/
docker-compose.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
42
43
44
45
version: '3'
services:
dnsmasq:
image: dnsmasq-gui:v1
container_name: dnsmasq
hostname: dnsmasq
restart: on-failure
volumes:
- "./conf/dnsmasq.conf:/etc/dnsmasq.conf"
- "./conf/hosts.dnsmasq:/etc/hosts.dnsmasq"
- "./conf/resolv.dnsmasq.conf:/etc/resolv.dnsmasq.conf"
- "./php-fpm/dnsmasq.conf:/etc/php81/php-fpm.d/dnsmasq.conf"
ports:
- "5553:53/tcp"
- "5553:53/udp"
- "9001:9001/tcp"
networks:
- dnsmasq-network
nginx:
image: nginx:latest
container_name: nginx_frontend
hostname: nginx
restart: on-failure
volumes:
- "./nginx/html:/usr/share/nginx/html"
- "./nginx/conf/dnsmasq-gui.conf:/etc/nginx/conf.d/dnsmasq-gui.conf"
- "./nginx/conf/fastcgi.conf:/etc/nginx/fastcgi.conf"
- "./nginx/conf/nginx.conf:/etc/nginx/nginx.conf"
ports:
- "8081:8080"
# - "8443:8443"
depends_on:
- dnsmasq
networks:
- dnsmasq-network
# alpine:
# image: alpine
# hostname: local
# command: [ "/bin/sh", "-c", "sleep 99999"]
# networks:
# - dnsmasq-network
networks:
dnsmasq-network:
driver: bridge