-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
41 lines (40 loc) · 969 Bytes
/
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
version: '3'
services:
warehouse:
build: ./warehouse
command: bash -c 'npm install && npm run dev'
image: fulfilment/warehouse
volumes:
- './warehouse:/usr/src/app'
ports:
- '9000:8080'
networks:
- fulfilment
depends_on:
- warehouse-db
environment:
POSTGRES_USER: 'api'
POSTGRES_PASSWORD: 'api'
POSTGRES_DB: 'fulfilment'
POSTGRES_HOST: 'warehouse-db'
MACHINE_AUTHEN_VALUE: '7bc18f1b229aedc236096bd53ecacc4f'
ENABLE_SWAGGER: 'true'
IS_ENABLE_DB_LOGGING: 'true'
warehouse-db:
image: postgres:9.6
volumes:
- 'postgres-warehouse-db:/var/lib/postgresql/data/pgdata'
ports:
- '5001:5432'
networks:
- fulfilment
environment:
PGDATA: '/var/lib/postgresql/data/pgdata'
POSTGRES_USER: 'api'
POSTGRES_PASSWORD: 'api'
POSTGRES_DB: 'fulfilment'
volumes:
warehouse:
postgres-warehouse-db:
networks:
fulfilment: