-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcompose.yaml
135 lines (126 loc) · 3.67 KB
/
compose.yaml
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
version: '3.9'
networks:
city-network:
driver: bridge
volumes:
city-shared-data:
services:
city-image-builder:
image: hiperium/city-image-builder:1.8.0
container_name: city-image-builder
build:
context: .
dockerfile: tools/docker/city-builder/Dockerfile
city-tasks-postgres:
image: postgres:14.4
container_name: postgres
ports:
- "5432:5432"
environment:
- POSTGRES_DB=CityTasksDB
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres123
depends_on:
- city-image-builder
networks:
- city-network
city-tasks-api:
image: hiperium/city-tasks-api:1.8.0
container_name: tasks-api
build:
context: .
dockerfile: apis/city-tasks-api/Dockerfile-native
ports:
- "8080:8080"
env_file:
- apis/city-tasks-api/local.env
depends_on:
- city-image-builder
- city-tasks-postgres
networks:
- city-network
city-tasks-api-proxy:
image: hiperium/city-tasks-api-proxy:1.8.0
container_name: tasks-proxy
build:
context: .
dockerfile: apis/city-tasks-api-proxy/Dockerfile
args:
envoy_env: dev
ports:
- "443:443"
depends_on:
- city-image-builder
- city-tasks-postgres
- city-tasks-api
networks:
- city-network
city-events-function:
image: hiperium/city-events-function:1.8.0
container_name: events-function
build:
context: .
dockerfile: apis/city-events-function/Dockerfile-native
ports:
- "9000:8080"
env_file:
- apis/city-events-function/local.env
volumes:
- city-shared-data:/tmp/city/shared
depends_on:
- city-image-builder
- city-tasks-postgres
- city-tasks-api
- city-tasks-api-proxy
networks:
- city-network
city-localstack:
image: localstack/localstack:latest
container_name: localstack
ports:
- "4566:4566"
env_file:
# https://docs.localstack.cloud/references/configuration/
- tools/docker/localstack/local.env
volumes:
# CITY COMMON RESOURCES
- ./tools/docker/localstack/common-infra-setup.sh:/etc/localstack/init/ready.d/1_common-infra-setup.sh
# CITY API RESOURCES
- ./apis/city-tasks-api/src/test/resources/infra-setup.sh:/etc/localstack/init/ready.d/2_api-setup.sh
- ./apis/city-tasks-api/src/test/resources/data-setup.json:/var/lib/localstack/api-data.json
# CITY EVENTS RESOURCES
- ./apis/city-events-function/src/test/resources/infra-setup.sh:/etc/localstack/init/ready.d/3_events-setup.sh
- ./apis/city-events-function/src/test/resources/lambda-custom-setup.sh:/etc/localstack/init/ready.d/4_events-lambda-setup.sh
- ./apis/city-events-function/src/test/resources/data-setup.json:/var/lib/localstack/events-data.json
# CITY COMMON PERMISSIONS
- ./tools/docker/localstack/common-infra-permissions.sh:/etc/localstack/init/ready.d/5_common-infra-permissions.sh
# DOCKER RESOURCES
- city-shared-data:/tmp/city/shared
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
- city-image-builder
- city-tasks-postgres
- city-tasks-api
- city-tasks-api-proxy
- city-events-function
networks:
- city-network
city-tasks-app:
image: hiperium/city-tasks-app:1.8.0
container_name: tasks-app
build:
context: .
dockerfile: apps/city-tasks-app/Dockerfile
ports:
- "80:80"
environment:
- NODE_ENV=production
depends_on:
- city-image-builder
- city-tasks-postgres
- city-tasks-api
- city-tasks-api-proxy
- city-events-function
- city-localstack
networks:
- city-network