-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
executable file
·77 lines (67 loc) · 1.56 KB
/
docker-compose.yaml
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
version: "3.7"
services:
modphp:
build: docker/modphp
container_name: modphp
restart: always
ports:
- "8000:80"
volumes:
- .:/var/www
- ./docker/modphp/vhost.conf:/etc/apache2/sites-enabled/vhost.conf
- ./docker/modphp/custom.ini:/usr/local/etc/php/conf.d/custom.ini
environment:
- TZ=America/Sao_Paulo
networks:
- app-network
depends_on:
- db
extra_hosts:
- host.docker.internal:host-gateway
db:
build: docker/mysql
command: mysqld --default-authentication-plugin=mysql_native_password
container_name: db
restart: always
tty: true
ports:
- "3306:3306"
volumes:
- ./docker/dbdata:/var/lib/mysql
- ./docker/mysql:/docker-entrypoint-initdb.d
environment:
- MYSQL_DATABASE=env_db
- MYSQL_ROOT_PASSWORD=root
- TZ=America/Sao_Paulo
networks:
- app-network
mongo:
image: mongo
container_name: mongo
restart: always
ports:
- 27017:27017
volumes:
- ./docker/mongo:/data/db
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: root
networks:
- app-network
rabbitmq:
image: rabbitmq:3.10.7-management
container_name: rabbitmq
restart: always
ports:
- "15672:15672"
- "5672:5672"
volumes:
- ./docker/rabbitmqdata:/var/lib/rabbitmq/mnesia
environment:
- "RABBITMQ_DEFAULT_USER=admin"
- "RABBITMQ_DEFAULT_PASS=admin"
networks:
- app-network
networks:
app-network:
driver: bridge