-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathcompose.yaml
More file actions
96 lines (89 loc) · 2.22 KB
/
Copy pathcompose.yaml
File metadata and controls
96 lines (89 loc) · 2.22 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
services:
nginx:
container_name: nginx
image: nginx:1.29.5
restart: unless-stopped
depends_on:
- backend
- frontend
ports:
- "80:80"
volumes:
- ./nginx:/etc/nginx/templates
environment:
- FRONTEND_PORT=${FRONTEND_PORT}
backend:
container_name: backend
build:
context: ./backend
dockerfile: ./Dockerfile
restart: unless-stopped
depends_on:
- valkey
- cns-api
environment:
- VALKEY_HOST=${VALKEY_HOST}
- VALKEY_PORT=${VALKEY_PORT}
- CNS_ADDRESS=${CNS_ADDRESS}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost/api/healthcheck"]
interval: 30s
timeout: 10s
retries: 3
frontend:
container_name: frontend
build:
context: ./frontend
dockerfile: ./Dockerfile
restart: unless-stopped
depends_on:
- backend
environment:
- PORT=${FRONTEND_PORT}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost/"]
interval: 30s
timeout: 10s
retries: 3
bot:
container_name: bot
build:
context: ./bot
dockerfile: ./Dockerfile
restart: unless-stopped
depends_on:
- valkey
- postgres
- cns-api
environment:
- BOT_TOKEN=${BOT_TOKEN}
- VALKEY_HOST=${VALKEY_HOST}
- VALKEY_PORT=${VALKEY_PORT}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_HOST=${POSTGRES_HOST}
- POSTGRES_PORT=${POSTGRES_PORT}
- CNS_ADDRESS=${CNS_ADDRESS}
valkey:
container_name: valkey
image: valkey/valkey:9.0.3
restart: unless-stopped
postgres:
container_name: postgres
image: postgres:17.9
restart: unless-stopped
volumes:
- ./db-data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
cns-api:
container_name: cns-api
image: ghcr.io/cheeselad/clubsandsocs-api:latest
restart: unless-stopped
environment:
- PORT=${CNS_PORT}
volumes:
db-data: