-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.dev.yml
96 lines (91 loc) · 2.58 KB
/
docker-compose.dev.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
services:
retailer-app:
image: bcer-retailer-app:dev
container_name: bcer-retailer-app
build:
context: ./packages
dockerfile: Dockerfile.retailer-app.dev
ports:
- "3000:3000"
volumes:
- ./packages/bcer-retailer-app:/usr/src/app/bcer-retailer-app
- ./packages/bcer-shared-components:/usr/src/app/bcer-shared-components
- /usr/src/app/bcer-retailer-app/app/node_modules
- /usr/src/app/bcer-shared-components/node_modules
depends_on:
- postgres
- application
networks:
- backend
data-portal:
image: bcer-data-portal:dev
container_name: bcer-data-portal
build:
context: ./packages
dockerfile: Dockerfile.data-portal.dev
environment:
- PORT=3000
- WDS_SOCKET_PORT=3001
ports:
- "3001:3001"
volumes:
- ./packages/bcer-data-portal:/usr/src/app/bcer-data-portal
- ./packages/bcer-shared-components:/usr/src/app/bcer-shared-components
- /usr/src/app/bcer-data-portal/app/node_modules
- /usr/src/app/bcer-shared-components/node_modules
depends_on:
- postgres
- application
networks:
- backend
application:
image: vape-nest-api:dev
container_name: vape-nest-api
build:
context: ./packages/bcer-api/app
dockerfile: Dockerfile.dev
ports:
- "4000:4000"
environment:
- NODE_ENV=local-dev
- DB_CONFIG_NAME=${DB_CONFIG_NAME}
- DB_CONFIG_TYPE=${DB_CONFIG_TYPE}
- DB_HOST=${DB_HOST}
- DB_PORT=${DB_PORT}
- DB_DATABASE=${DB_DATABASE}
- DB_USERNAME=${DB_USERNAME}
- DB_PASSWORD=${DB_PASSWORD}
- KEYCLOAK_PORT=${KEYCLOAK_PORT}
- KEYCLOAK_REALM=${KEYCLOAK_REALM}
- KEYCLOAK_CLIENT=${KEYCLOAK_CLIENT}
- KEYCLOAK_AUTH_URL=${KEYCLOAK_AUTH_URL}
- KEYCLOAK_DATA_REALM=${KEYCLOAK_DATA_REALM}
- KEYCLOAK_DATA_CLIENT=${KEYCLOAK_DATA_CLIENT}
- KEYCLOAK_DATA_AUTH_URL=${KEYCLOAK_DATA_AUTH_URL}
expose:
- "4000"
volumes:
- ./packages/bcer-api/app:/usr/src/app
- /usr/src/app/node_modules
depends_on:
- postgres
networks:
- backend
postgres:
image: vape-nest-api-postgres:dev
container_name: vape-nest-api-postgres
build:
context: ./packages/bcer-api/.docker/postgres
ports:
- "5435:5432"
environment:
- POSTGRES_MULTIPLE_DATABASES="nest_api_dev","nest_api_test","vape_migrations"
- POSTGRES_USER=${DB_USERNAME}
- POSTGRES_PASSWORD=${DB_PASSWORD}
networks:
- backend
networks:
backend:
driver: "bridge"
volumes:
postgres: