-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
116 lines (107 loc) · 2.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
version: '3.2'
# Criando Redes
networks:
net-local:
driver: bridge
ipam:
driver: default
config:
-
subnet: 172.38.1.0/24
services:
#- Serviço Banco de Dados
mysql:
build:
context: .
dockerfile: ./Dockerfile/Dockerfile-mysql
container_name: mysql
environment:
- MYSQL_ROOT_PASSWORD=123456
- MYSQL_PASSWORD=123456
- MYSQL_DATABASE=database01
- MYSQL_USER=db_user
ports:
- "3306:3306"
volumes:
- "./infra/mysql/db:/var/lib/mysql"
networks:
net-local:
ipv4_address: 172.38.1.2
extra_hosts:
- "app01.local:172.38.1.5"
#- Serviço Gerenciamento Banco de Dados PHP-MYADMIN
phpmyadmin:
container_name: phpmyadmin
image: phpmyadmin/phpmyadmin
links:
- mysql:mysql
environment:
- PMA_ARBITRARY=1
restart: always
ports:
- "8080:80"
networks:
net-local:
ipv4_address: 172.38.1.3
extra_hosts:
- "app01.local:172.38.1.5"
#- Console de Comandos "artisan", "composer", "curl", "gulp", "bower" inclui serviço nodejs portas não configuradas.
comandos:
build:
context: .
dockerfile: Dockerfile/Dockerfile-comandos
container_name: comandos
volumes:
- "./dev:/var/www/html"
restart: always
networks:
net-local:
ipv4_address: 172.38.1.4
extra_hosts:
- "app01.local:172.38.1.5"
#- Serviço de Cache de Memória
redis:
container_name: redis
image: redis:alpine
restart: always
ports:
- "6379:6379"
#- Serviço Web Server (Nginx)
web:
image: nginx:latest
container_name: web
links:
- mysql:mysql
- redis:redis
- php:php
#- rabbitmq:rabbitmq
environment:
XDEBUG_CONFIG: "remote_host=172.38.1.5"
PHP_IDE_CONFIG: "serverName=web"
restart: always
ports:
- "80:80"
volumes:
- "./dev:/var/www"
- "./infra/nginx/conf.d:/etc/nginx/conf.d"
networks:
net-local:
ipv4_address: 172.38.1.5
extra_hosts:
- "app01.local:172.38.1.5"
#- Serviço de PHP-FPM 7
php:
build:
context: .
dockerfile: Dockerfile/Dockerfile-phpfpm
container_name: php
volumes:
- "./dev:/var/www"
- "./infra/php/php.ini:/usr/local/etc/php/php.ini"
ports:
- "9000:9000"
networks:
net-local:
ipv4_address: 172.38.1.6
extra_hosts:
- "app01.local:172.38.1.5"