-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproduction.yaml
50 lines (46 loc) · 922 Bytes
/
production.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
services:
django:
build:
context: .
dockerfile: ./compose/production/django/Dockerfile
restart: always
volumes:
- django-static:/app/static
- django-media:/app/media
env_file:
- .env
networks:
- backend
depends_on:
- postgres
postgres:
image: postgres:16.2-alpine
restart: always
volumes:
- postgres-data:/var/lib/postgresql/data
env_file:
- .env
networks:
- backend
caddy:
image: caddy:2-alpine
restart: always
volumes:
- ./compose/production/caddy/Caddyfile:/etc/caddy/Caddyfile
- django-static:/app/static
- django-media:/app/media
env_file:
- .env
networks:
backend:
ingress-web:
aliases:
- ${APP_UNIQUE_IDENTIFIER}
volumes:
django-static:
django-media:
postgres-data:
networks:
backend:
ingress-web:
external: true