-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (46 loc) · 1.19 KB
/
docker-compose.yml
File metadata and controls
50 lines (46 loc) · 1.19 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
version: "3.8"
services:
web:
image: ghcr.io/pirogramming/healthtant:latest
container_name: healthtant_web
restart: unless-stopped
command: ["gunicorn", "config.wsgi:application", "--bind", "0.0.0.0:8000", "--workers", "2", "--timeout", "120", "--max-requests", "1000", "--max-requests-jitter", "50"]
env_file:
- .env
volumes:
- static_volume:/app/staticfiles
- media_volume:/app/media
expose:
- "8000"
depends_on:
- db
db:
image: postgres:15
container_name: healthtant_db
restart: unless-stopped
environment:
POSTGRES_DB: healthtant
POSTGRES_USER: healthtant_user
POSTGRES_PASSWORD: healthtant_pass
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
nginx:
image: nginx:1.27-alpine
container_name: healthtant_nginx
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
- static_volume:/app/staticfiles:ro
- media_volume:/app/media:ro
- /etc/letsencrypt:/etc/letsencrypt:ro
depends_on:
- web
volumes:
static_volume:
media_volume:
postgres_data: