-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
55 lines (51 loc) · 1.64 KB
/
docker-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
services:
gateway-redis:
image: redis:5-alpine
shared-postgres:
image: ghcr.io/digirati-co-uk/madoc-postgres:main
platform: linux/amd64
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres_password
- POSTGRES_MADOC_TS_USER=madoc_ts
- POSTGRES_MADOC_TS_SCHEMA=madoc_ts
- POSTGRES_MADOC_TS_PASSWORD=madoc_ts_password
- POSTGRES_TASKS_API_USER=tasks_api
- POSTGRES_TASKS_API_SCHEMA=tasks_api
- POSTGRES_TASKS_API_PASSWORD=tasks_api_password
- POSTGRES_MODELS_API_USER=models_api
- POSTGRES_MODELS_API_SCHEMA=models_api
- POSTGRES_MODELS_API_PASSWORD=models_api_password
- POSTGRES_CONFIG_SERVICE_USER=config_service
- POSTGRES_CONFIG_SERVICE_SCHEMA=config_service
- POSTGRES_CONFIG_SERVICE_PASSWORD=config_service_password
- POSTGRES_SEARCH_API_USER=search_api
- POSTGRES_SEARCH_API_SCHEMA=search_api
- POSTGRES_SEARCH_API_PASSWORD=search_api_password
volumes:
- shared_postgres_data:/var/lib/postgresql/data:Z
ports:
- "${PORTS_SHARED_POSTGRES:-5401}:5432"
tasks-api:
build:
dockerfile: Dockerfile
restart: on-failure
environment:
- SERVER_PORT=3000
- DATABASE_HOST=shared-postgres
- DATABASE_NAME=postgres
- DATABASE_PORT=5432
- DATABASE_USER=tasks_api
- DATABASE_SCHEMA=tasks_api
- DATABASE_PASSWORD=tasks_api_password
- QUEUE_LIST=tasks-api,madoc-ts
- REDIS_HOST=gateway-redis
links:
- shared-postgres
- gateway-redis
ports:
- "3000:3000"
volumes:
# Databases
shared_postgres_data: {}