-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
86 lines (77 loc) · 1.95 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
---
version: '3'
services:
dnsmasq:
container_name: dnsmasq
image: jpillora/dnsmasq
ports:
- "127.0.0.2:53:53/udp"
volumes:
- ./dnsmasq.conf:/etc/dnsmasq.conf
web:
container_name: web
image: nginx:latest
volumes:
- ./nginx.conf:/etc/nginx/conf.d/nginx.conf
- ..:/var/www/
labels:
traefik.enable: "true"
traefik.http.routers.web.entrypoints: "web"
traefik.http.routers.web.rule: "HostRegexp(`{subdomain:[a-z.-]+}.php{version:[0-9]+}.loc`)"
traefik.http.services.web.loadbalancer.server.port: "80"
php-74:
container_name: php74
build:
context: .
dockerfile: php.dockerfile
args:
BASE_IMAGE: "php:7.4-fpm"
volumes:
- ..:/var/www/
- ./supervisor:/etc/supervisor/conf.d
php-80:
container_name: php80
build:
context: .
dockerfile: php.dockerfile
args:
BASE_IMAGE: "php:8.0-fpm"
volumes:
- ..:/var/www/
- ./supervisor:/etc/supervisor/conf.d
php-81:
container_name: php81
build:
context: .
dockerfile: php.dockerfile
args:
BASE_IMAGE: "php:8.1-fpm"
volumes:
- ..:/var/www/
- ./supervisor:/etc/supervisor/conf.d
redis:
container_name: redis
image: redis
mysql:
container_name: mysql
image: mysql
environment:
MYSQL_ROOT_PASSWORD: 'root'
ports:
- "3306:3306"
volumes:
- mysql_data:/var/lib/mysql
mailhog:
container_name: mailhog
image: mailhog/mailhog:latest
logging:
driver: 'none'
ports:
- 1025:1025
- 8025:8025
volumes:
mysql_data:
networks:
default:
external:
name: user-bridge