-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (47 loc) · 972 Bytes
/
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
version: '3'
services:
web:
image: nginx:latest
container_name: web
volumes:
- ./dev/docker/nginx/templates:/etc/nginx/templates
- .:/usr/share/nginx/html
ports:
- "80:80"
environment:
- NGINX_HOST=playground.local
- NGINX_PORT=80
networks:
custom_net:
ipv4_address: 172.28.1.1
php:
build: ./dev/docker/phpfpm/.
container_name: php-fpm
volumes:
- .:/usr/share/nginx/html
networks:
custom_net:
ipv4_address: 172.28.1.2
redis:
image: redis:latest
container_name: redis
expose:
- 6379
networks:
custom_net:
ipv4_address: 172.28.1.3
rabbitmq:
image: rabbitmq:3-management-alpine
container_name: rabbitmq
ports:
- 5672:5672
- 15672:15672
networks:
custom_net:
ipv4_address: 172.28.1.4
networks:
custom_net:
ipam:
driver: default
config:
- subnet: 172.28.0.0/16