-
Notifications
You must be signed in to change notification settings - Fork 269
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
140 lines (134 loc) · 3.4 KB
/
docker-compose.yml
File metadata and controls
140 lines (134 loc) · 3.4 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
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
136
137
138
139
140
services:
club_app: &app
build:
dockerfile: Dockerfile
context: .
command: make docker-run-dev
container_name: club_app
healthcheck:
test: ["CMD", "python3", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/')"]
interval: 5s
timeout: 3s
retries: 15
start_period: 30s
environment:
- MODE=dev
- DEBUG=true
- PYTHONUNBUFFERED=1
- POSTGRES_DB=vas3k_club
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_HOST=postgres
- REDIS_DB=0
- REDIS_HOST=redis
restart: always
volumes:
- .:/app:delegated # enable hot code reload in debug mode
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
queue:
condition: service_started
webpack:
condition: service_started
ports:
- "8000:8000"
queue:
build:
dockerfile: Dockerfile
context: .
command: make docker-run-queue
environment:
- MODE=dev
- DEBUG=true
- PYTHONUNBUFFERED=1
- POSTGRES_DB=vas3k_club
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_HOST=postgres
- REDIS_DB=0
- REDIS_HOST=redis
restart: always
volumes:
- .:/app:delegated
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
postgres:
image: postgres:14@sha256:b964c3211689ffe50cc65235ea338717520954dcf6ecd4d76bf887eba3cbc91f
container_name: club_postgres
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=vas3k_club
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 3s
retries: 5
redis:
image: redis:alpine@sha256:2afba59292f25f5d1af200496db41bea2c6c816b059f57ae74703a50a03a27d0
environment:
- ALLOW_EMPTY_PASSWORD=yes
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 5
webpack:
image: node:22-slim@sha256:dd9d21971ec4395903fa6143c2b9267d048ae01ca6d3ea96f16cb30df6187d94
command: npm run watch
restart: always
volumes:
- .:/app:delegated
working_dir: /app/frontend
# Uncomment these lines if you want to test the Club bot locally
# bot:
# build:
# dockerfile: Dockerfile
# context: .
# command: make docker-run-bot
# environment:
# - MODE=dev
# - DEBUG=true
# - PYTHONUNBUFFERED=1
# - POSTGRES_DB=vas3k_club
# - POSTGRES_USER=postgres
# - POSTGRES_PASSWORD=postgres
# - POSTGRES_HOST=postgres
# - REDIS_DB=0
# - REDIS_HOST=redis
# restart: always
# volumes:
# - .:/app:delegated
# depends_on:
# - club_app
# - postgres
# - redis
# Uncomment these lines if you want to test the Helpdeskbot locally
# helpdeskbot:
# build:
# dockerfile: Dockerfile
# context: .
# command: make docker-run-helpdeskbot
# environment:
# - MODE=dev
# - DEBUG=true
# - PYTHONUNBUFFERED=1
# - POSTGRES_DB=vas3k_club
# - POSTGRES_USER=postgres
# - POSTGRES_PASSWORD=postgres
# - POSTGRES_HOST=postgres
# - REDIS_DB=0
# - REDIS_HOST=redis
# restart: always
# volumes:
# - .:/app:delegated
# depends_on:
# - club_app
# - postgres
# - redis