-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·80 lines (73 loc) · 1.64 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
version: '3.3'
services:
lumen:
container_name: lumen
image: nginx:alpine
volumes:
- .:/usr/share/nginx/html
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
ports:
- 8080:80
environment:
- NGINX_HOST=172.40.10.30
- NGINX_PORT=80
networks:
lumen-sandbox-network:
ipv4_address: 172.40.10.30
aliases:
- lumen
php-fpm81:
container_name: php-fpm81
build:
dockerfile: ./docker/php-fpm81.Dockerfile
context: .
volumes:
- .:/var/www/html
- ./docker/php/8.1/fpm/www.conf:/usr/local/etc/php-fpm.d/www.conf
networks:
lumen-sandbox-network:
ipv4_address: 172.40.10.20
aliases:
- php-fpm81
mysql8:
container_name: mysql8
image: mysql:8
environment:
MYSQL_DATABASE: 'lumen'
MYSQL_USER: 'lumen'
MYSQL_PASSWORD: 'secret'
MYSQL_ROOT_PASSWORD: 'root'
volumes:
- ./docker/mysql/my.cnf:/etc/mysql/my.cnf
- db-data:/var/lib/mysql
networks:
lumen-sandbox-network:
ipv4_address: 172.40.10.10
aliases:
- mysql8
redis:
container_name: redis
image: redis:latest
networks:
lumen-sandbox-network:
ipv4_address: 172.40.10.11
aliases:
- redis
mailhog:
container_name: mailhog
image: mailhog/mailhog
networks:
lumen-sandbox-network:
ipv4_address: 172.40.10.12
aliases:
- mailhog
volumes:
db-data:
driver: local
networks:
lumen-sandbox-network:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.40.10.0/24