-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
45 lines (40 loc) · 1016 Bytes
/
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
version: '3'
services:
postgres:
container_name: postgres-service
hostname: postgres-service
image: postgres:12.1
restart: always
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: dev.capivara
POSTGRES_DB: users
TZ: GMT-3
ports:
- "19000:5432"
volumes:
- db-data:/var/lib/postgresql/data
- ./database_init/ddl.sql:/docker-entrypoint-initdb.d/1.sql
networks:
- datanodes-network
mongo:
container_name: mongo-service
image: mongo:4.0.13-xenial
environment:
MONGO_INITDB_DATABASE: devCapivaraMicroservice
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: dev.capivara
TZ: America/Fortaleza
ports:
- "19200:27017"
volumes:
- db-data-mongodb:/data/db
- ./database_init/init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro
networks:
- datanodes-network
volumes:
db-data:
db-data-mongodb:
networks:
datanodes-network:
driver: bridge