-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
76 lines (70 loc) · 1.64 KB
/
docker-compose.yaml
File metadata and controls
76 lines (70 loc) · 1.64 KB
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
version: '3.8'
networks:
development:
driver: bridge
services:
#########################
## Backend ##
#########################
svc-consents:
image: granite-svc-consents:latest
build:
args:
PACKAGE: svc-consents
context: .
dockerfile: packages/backend/Dockerfile
env_file:
- packages/backend/svc-consents/.env
environment:
- API_HOST=0.0.0.0
- API_PORT=3000
- ENVIRONMENT=production
- NODE_ENV=production
- TYPEORM_DATABASE=granite
- TYPEORM_HOST=db
- TYPEORM_PASSWORD=masterkey
- TYPEORM_PORT=5432
- TYPEORM_SCHEMA=consents
- TYPEORM_USERNAME=granite
ports:
- 3000:3000
depends_on:
db:
condition: service_healthy
networks:
- development
container_name: svc-consents
#########################
## Persistence ##
#########################
db:
image: postgres:14-alpine
environment:
- POSTGRES_DB=granite
- POSTGRES_PASSWORD=masterkey
- POSTGRES_USER=granite
ports:
- 5432:5432
networks:
- development
healthcheck:
test: ['CMD-SHELL', 'pg_isready']
interval: 10s
timeout: 5s
retries: 5
volumes:
- ./db/scripts:/docker-entrypoint-initdb.d
container_name: granite-db
db-integration:
image: postgres:14-alpine
environment:
- POSTGRES_DB=granite
- POSTGRES_PASSWORD=masterkey
- POSTGRES_USER=granite
ports:
- 5433:5432
networks:
- development
volumes:
- ./db/scripts:/docker-entrypoint-initdb.d
container_name: granite-db-integration