-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
67 lines (64 loc) · 1.49 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
56
57
58
59
60
61
62
63
64
65
66
67
version: "3"
services:
history:
image: postgres:15-alpine
container_name: subscription_service_history_db
restart: unless-stopped
env_file: .env
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
volumes:
- "history:/var/lib/postgresql/data"
ports:
- 5435:5432
db:
image: redis/redis-stack-server:latest
container_name: subscription_service_db
restart: unless-stopped
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 1s
timeout: 3s
retries: 5
ports:
- 6381:6379
# - 8010:8001
subscription_server:
image: subscription-server:latest
build:
context: .
dockerfile: build/server/Dockerfile
container_name: subscription_server
restart: unless-stopped
env_file: .env
ports:
- "${APP_PORT}:${APP_PORT}"
depends_on:
db:
condition: service_healthy
history:
condition: service_healthy
subscription_message_handler:
image: subscription-message-handler:latest
build:
context: .
dockerfile: build/handler/Dockerfile
container_name: subscription_message_handler
restart: unless-stopped
env_file: .env
depends_on:
db:
condition: service_healthy
history:
condition: service_healthy
volumes:
history:
db:
networks:
default:
name: sportiq
external: true