-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
105 lines (99 loc) · 2.59 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
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
97
98
99
100
101
102
103
104
105
version: '3.9'
services:
reverse_proxy:
image: hauing/api-gateway:develop
build:
context: ./
dockerfile: ./services/api-gateway/Dockerfile
target: runtime
ports:
- 3000:3000
environment:
- WEB_ENDPOINT=$WEB_ENDPOINT
- TEMPLATE_ENDPOINT=$TEMPLATE_ENDPOINT
- CREATION_ENDPOINT=$CREATION_ENDPOINT
- USER_ENDPOINT=$USER_ENDPOINT
depends_on:
- web
- templates
- creation
web:
image: hauing/web-service:develop
build:
context: ./
dockerfile: ./services/web-service/Dockerfile
target: runtime
ports:
- 3001:3000
links:
- templates
templates:
image: hauing/templateing-service:develop
build:
context: ./
dockerfile: ./services/templateing-service/Dockerfile
ports:
- 3002:3000
- 3010:3001
environment:
- POSTGRES_HOST=$POSTGRES_HOST
- POSTGRES_PORT=$POSTGRES_PORT
- POSTGRES_USERNAME=$POSTGRES_USERNAME
- POSTGRES_PASSWORD=$POSTGRES_PASSWORD
- POSTGRES_DBNAME=$POSTGRES_DBNAME
- USER_GRPC_ENDPOINT=$USER_GRPC_ENDPOINT
volumes:
- ./services/templateing-service/test_data.json:/app/test_data.json
depends_on:
postgres:
condition: service_healthy
creation:
image: hauing/creation-service:develop
build:
context: ./
dockerfile: ./services/creation-service/Dockerfile
target: runtime
environment:
- TEMPLATE_GRPC_ENDPOINT=$TEMPLATE_GRPC_ENDPOINT
ports:
- 3003:3000
links:
- templates
depends_on:
- templates
user:
image: hauing/user-service:develop
build:
context: ./
dockerfile: ./services/user-service/Dockerfile
target: runtime
ports:
- 3004:3000
environment:
- POSTGRES_HOST=$POSTGRES_HOST
- POSTGRES_PORT=$POSTGRES_PORT
- POSTGRES_USERNAME=$POSTGRES_USERNAME
- POSTGRES_PASSWORD=$POSTGRES_PASSWORD
- POSTGRES_DBNAME=$POSTGRES_DBNAME
- AUTH_PRIVATE_KEY=$AUTH_PRIVATE_KEY
- AUTH_PUBLIC_KEY=$AUTH_PUBLIC_KEY
volumes:
- ./services/templateing-service/test_data.json:/app/test_data.json
depends_on:
postgres:
condition: service_healthy
postgres:
image: postgres:15-alpine
ports:
- 5432:5432
environment:
- POSTGRES_PASSWORD=$POSTGRES_PASSWORD
- POSTGRES_USER=$POSTGRES_USER
- POSTGRES_DB=$POSTGRES_DB
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
volumes:
- ./.docker/postgres:/docker-entrypoint-initdb.d