forked from UK-Export-Finance/mdm-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
51 lines (51 loc) · 1.78 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
version: "3.8"
services:
api:
container_name: api
image: mdm-api
build:
dockerfile: Dockerfile
context: .
target: development
volumes:
- .:/app/src:rw
env_file:
- .env
environment:
PORT: 3003
DATABASE_MDM_HOST: ${DATABASE_MDM_HOST}
DATABASE_MDM_PORT: ${DATABASE_MDM_PORT}
DATABASE_MDM_USERNAME: ${DATABASE_MDM_USERNAME}
DATABASE_MDM_PASSWORD: ${DATABASE_MDM_PASSWORD}
DATABASE_MDM_NAME: ${DATABASE_MDM_NAME}
DATABASE_NUMBER_GENERATOR_HOST: ${DATABASE_NUMBER_GENERATOR_HOST}
DATABASE_NUMBER_GENERATOR_PORT: ${DATABASE_NUMBER_GENERATOR_PORT}
DATABASE_NUMBER_GENERATOR_USERNAME: ${DATABASE_NUMBER_GENERATOR_USERNAME}
DATABASE_NUMBER_GENERATOR_PASSWORD: ${DATABASE_NUMBER_GENERATOR_PASSWORD}
DATABASE_NUMBER_GENERATOR_NAME: ${DATABASE_NUMBER_GENERATOR_NAME}
DATABASE_CEDAR_HOST: ${DATABASE_CEDAR_HOST}
DATABASE_CEDAR_PORT: ${DATABASE_CEDAR_PORT}
DATABASE_CEDAR_USERNAME: ${DATABASE_CEDAR_USERNAME}
DATABASE_CEDAR_PASSWORD: ${DATABASE_CEDAR_PASSWORD}
DATABASE_CEDAR_NAME: ${DATABASE_CEDAR_NAME}
DATABASE_CIS_HOST: ${DATABASE_CIS_HOST}
DATABASE_CIS_PORT: ${DATABASE_CIS_PORT}
DATABASE_CIS_USERNAME: ${DATABASE_CIS_USERNAME}
DATABASE_CIS_PASSWORD: ${DATABASE_CIS_PASSWORD}
DATABASE_CIS_NAME: ${DATABASE_CIS_NAME}
REDIS_HOST: ${REDIS_HOST}
REDIS_PORT: ${REDIS_PORT}
SWAGGER_PASSWORD: ${SWAGGER_PASSWORD}
SWAGGER_USER: ${SWAGGER_USER}
NODE_ENV: development
TZ: Europe/London
command: npm run start:dev
restart: always
ports:
- 3003:3003
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3003"]
interval: 1m30s
timeout: 10s
retries: 3
start_period: 40s