-
Notifications
You must be signed in to change notification settings - Fork 5
/
local.yml
51 lines (47 loc) · 939 Bytes
/
local.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
version: "3.7"
services:
ui:
container_name: "ui"
image: uid4oe/ms-grpc-ui:latest
networks:
- uid4oe
ports:
- 3000:80
mongodb:
container_name: "mongodb"
image: mongo:latest
hostname: mongodb
restart: always
volumes:
- ./mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
- mongodb:/data/db
- mongoconfig:/data/configdb
env_file:
- .env
networks:
- uid4oe
ports:
- 27017:27017
postgres:
container_name: "postgres"
image: postgres:latest
hostname: postgres
user: postgres
restart: always
volumes:
- postgres:/var/lib/postgresql/data
- ./advice.sql:/docker-entrypoint-initdb.d/create_tables.sql
env_file:
- .env
networks:
- uid4oe
command: 'postgres'
ports:
- '5432:5432'
volumes:
mongodb:
mongoconfig:
postgres:
networks:
uid4oe:
external: true