-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
53 lines (52 loc) · 1.25 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
version: '3.7'
services:
gateway:
build: ./gateway
container_name: fooddood-gateway
command: npm run start:docker
ports:
- "3000:3000"
volumes:
- ./gateway/:/usr/app/src
- ./config/:/usr/app/config
ingredient:
build: ./ingredient
container_name: fooddood-ingredient
command: npm run start:docker
depends_on:
- "gateway"
- "postgres"
ports:
- "9000:9000"
volumes:
- ./ingredient/:/usr/app/src
- ./config/:/usr/app/config
postgres:
image: postgres:11.5-alpine
container_name: fooddood-postgres
depends_on:
- "gateway"
environment:
POSTGRES_USER: fooddood
POSTGRES_PASSWORD: F00dd00D
POSTGRES_DB: db
ports:
- "5432:5432"
volumes:
- ./db/data:/var/lib/postgresql/data
- ./db/init/init.sql:/docker-entrypoint-initdb.d/init.sql
mongodb:
image: mongo:4.2
container_name: fooddood-mongodb
depends_on:
- "gateway"
environment:
MONGO_INITDB_ROOT_USERNAME: fooddood
MONGO_INITDB_ROOT_PASSWORD: F00dd00D
MONGO_INITDB_ROOT_DATABASE: db
MONGODB_DATA_DIR: /data/db
MONGODB_LOG_DIR: /dev/null
ports:
- "27017:27017"
volumes:
- ./db_m:/data/db