-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
54 lines (48 loc) · 1017 Bytes
/
docker-compose.yml
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
services:
web:
build: .
pull_policy: build
restart: always
command: gunicorn chudartz.wsgi:application --bind 0.0.0.0:8003
env_file: stack.env
volumes:
# - .:/app
- static_volume:/app/staticfiles
- media_volume:/app/mediafiles
ports:
- "8003:8003"
depends_on:
- db
working_dir: /app
db:
image: postgres:16
container_name: chudaratz_db
restart: always
env_file: stack.env
volumes:
- ./data/db:/var/lib/postgresql/data
expose:
- "5434"
ports:
- 5434:5434
backup:
image: eeshugerman/postgres-backup-s3:16
env_file: stack.env
restart: always
environment:
SCHEDULE: '@daily'
BACKUP_KEEP_DAYS: 7
nginx:
image: nginx:alpine
restart: always
volumes:
- nginx_volume:/etc/nginx
- static_volume:/app/staticfiles
- media_volume:/app/mediafiles
ports:
- "81:81"
volumes:
postgres_data:
nginx_volume:
media_volume:
static_volume: