-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
65 lines (60 loc) · 1.27 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
version: "3"
services:
mysql:
container_name: mysql
image: mysql
environment:
- MYSQL_DATABASE=contacts_db
- MYSQL_ROOT_HOST=%
- MYSQL_USER=admin
- MYSQL_ROOT_PASSWORD=admin
- MYSQL_PASSWORD=admin
ports:
- 3306
command: --authentication_policy=mysql_native_password
networks:
- server
volumes:
- ./src/sql/macapa.sql:/docker-entrypoint-initdb.d/macapa.sql
postgresql:
container_name: postgresql
image: postgres
ports:
- 5432
environment:
- POSTGRES_PASSWORD=admin
- POSTGRES_USER=admin
- POSTGRES_DB=contacts_db
networks:
- server
volumes:
- ./src/sql/varejao.sql:/docker-entrypoint-initdb.d/varejao.sql
clients_db:
container_name: clients_db
image: mongo
ports:
- 27017
command: --auth
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=root
- MONGO_INITDB_DATABASE=clients_db
networks:
- server
express:
container_name: express
build: .
env_file: .env.prod
ports:
- 8000:8000
environment:
- NODE_ENV=prod
depends_on:
- clients_db
- postgresql
- mysql
networks:
- server
networks:
server:
driver: bridge