-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcompose.prod.yaml
61 lines (61 loc) · 1.33 KB
/
compose.prod.yaml
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
services:
django:
image: socnet-production-django
build:
target: python-production-run-stage
args:
- EXTRA=production
depends_on:
- redis
networks:
- caddy-django
- django-redis
restart: on-failure
volumes:
- production-django-media:/var/www/django/media
- production-django-static:/var/www/django/static
postgres:
restart: on-failure
volumes:
- production-postgres-data:/var/lib/postgresql/data
redis:
image: docker.io/valkey/valkey:8
init: true
logging:
driver: local
networks:
- django-redis
restart: on-failure
caddy:
build:
context: .
dockerfile: ./docker/caddy/Dockerfile
cap_add:
- NET_ADMIN
depends_on:
- django
env_file: ./.env
init: true
logging:
driver: local
networks:
- caddy-django
ports:
- "80:80"
- "443:443"
- "443:443/udp"
restart: on-failure
volumes:
- production-caddy-config:/config
- production-caddy-data:/data
- production-django-media:/var/www/django/media
- production-django-static:/var/www/django/static
networks:
caddy-django:
django-redis:
volumes:
production-caddy-config:
production-caddy-data:
production-django-media:
production-django-static:
production-postgres-data: