-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
70 lines (63 loc) · 1.56 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
version: "3.7"
volumes:
cfgdata:
driver: azure_file
driver_opts:
share_name: cfgfileshare
storage_account_name: cfgstorage
services:
cfg-postgres:
image: acrchefdog.azurecr.io/postgres
container_name: cfg-postgres
healthcheck:
test: [ "CMD", "pg_isready", "-q", "-d", "postgres", "-U", "postgres" ]
timeout: 45s
interval: 10s
retries: 10
restart: always
volumes:
- cfgdata:/docker-entrypoint-initdb.d/
ports:
- 5432:5432
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=1ch@fdog31
- APP_DB_NAME=cfg-keystone-db
- APP_DB_USER=cfg-keystone-db-admin
- APP_DB_PASS=1ch@fdog33
cfg-backend:
build:
args:
- NODE_ENV=production
context: ./chefdog.keystone
dockerfile: Dockerfile
image: acrchefdog.azurecr.io/chefdog-keystone
container_name: cfg-keystone
command: npm run start
environment:
- DATABASE_HOST=cfg-postgres
- DATABASE_NAME=cfg-keystone-db
- DATABASE_USER=cfg-keystone-db-admin
- DATABASE_PASSWORD=1ch@fdog33
- DATABASE_PORT=5432
ports:
- 3000:3000
links:
- cfg-postgres
depends_on:
- cfg-postgres
cfg-frontend:
build:
args:
- NODE_ENV=production
context: ./chefdog.frontend
dockerfile: Dockerfile
image: acrchefdog.azurecr.io/chefdog-frontend
container_name: cfg-frontend
command: npm run start
ports:
- 3500:3500
links:
- cfg-backend
depends_on:
- cfg-backend