-
Notifications
You must be signed in to change notification settings - Fork 0
/
common-services.yml
73 lines (64 loc) · 1.63 KB
/
common-services.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
version: '3.7'
services:
django:
env_file:
- ./.env.django
user: '${UID}:${GID}'
command: python manage.py runserver 0.0.0.0:8000
volumes:
- ./src/backend/:/home/app/django/
- ./logs:/home/app/logs
- .:/srv/project_root/
django-dramatiq-worker:
env_file:
- ./.env.django
user: '${UID}:${GID}'
volumes:
- ./src/backend/:/home/app/django/
- ./logs:/home/app/logs
command: python manage.py rundramatiq --processes 2 --threads 1
django-periodiq-worker:
env_file:
- ./.env.django
user: '${UID}:${GID}'
volumes:
- ./src/backend/:/home/app/django/
- ./logs:/home/app/logs
command: python manage.py runperiodiq
postgres:
image: postgres:16-alpine
env_file:
- ./.env.django.db
volumes:
- postgres_data:/var/lib/postgresql/data/
pg-backups:
image: prodrigestivill/postgres-backup-local
env_file:
- ./.env.django.db
restart: always
healthcheck:
test: ['CMD', 'curl', '--fail', 'http://localhost:8080/']
interval: 10s
timeout: 10s
retries: 5
volumes:
- ./pgbackups:/backups
environment:
POSTGRES_HOST: postgres
POSTGRES_EXTRA_OPTS: -Z6 --schema=public --blobs
BACKUP_KEEP_MONTHS: 2
rabbitmq:
image: rabbitmq:3.11
healthcheck:
test: ['CMD', 'rabbitmq-diagnostics', '-q', 'ping']
volumes:
- rabbitmq_data:/data
# nginx:
# image: nginx:1.23.0
# volumes:
# - ./nginx-templates:/etc/nginx/templates
# environment:
# - COMPOSE_PROJECT_NAME=${COMPOSE_PROJECT_NAME}
volumes:
postgres_data:
rabbitmq_data: