-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathproduction.yml
54 lines (47 loc) · 1.05 KB
/
production.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
version: '3'
volumes:
production_media: {}
production_postgres_data: {}
production_postgres_data_backups: {}
production_traefik: {}
services:
django:
restart: always
image: ghcr.io/commonknowledge/airsift3-app
depends_on:
- postgres
- redis
volumes:
- production_media:/app/airsift/media:Z
env_file:
- ./.env
command: /start
ports:
- "0.0.0.0:8181:5000"
postgres:
restart: always
image: ghcr.io/commonknowledge/airsift3-postgres
volumes:
- production_postgres_data:/var/lib/postgresql/data:Z
- production_postgres_data_backups:/backups:z
env_file:
- ./.env
ports:
- "0.0.0.0:5432:5432"
traefik:
restart: always
image: ghcr.io/commonknowledge/airsift3-traefik
depends_on:
- django
volumes:
- production_traefik:/etc/traefik/acme:z
ports:
- "0.0.0.0:80:80"
- "0.0.0.0:443:443"
nginx:
restart: always
image: nginx
volumes:
- production_media:/usr/share/nginx/html:z
redis:
image: redis:5.0