-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (47 loc) · 1 KB
/
docker-compose.yml
File metadata and controls
51 lines (47 loc) · 1 KB
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
services:
postgres:
image: postgres:18
environment:
- POSTGRES_USER=akb
- POSTGRES_PASSWORD=akb
volumes:
- postgres-data:/var/lib/postgresql
networks:
- app
restart: always
akb-django-app:
build: .
env_file:
- secret.env # SECRET_KEY
environment:
- ALLOWED_HOSTS=*
- PRODUCTION=1
- DATABASE_URL=postgres://akb:akb@postgres/akb
- VIRTUAL_HOST=akb.ztf.snad.space
- DYNDNS_HOST=akb.ztf.snad.space
- LETSENCRYPT_HOST=akb.ztf.snad.space
- LETSENCRYPT_EMAIL=letsencrypt@snad.space
depends_on:
- postgres
networks:
- app
- proxy
restart: always
akb-django-backup:
build:
context: .
dockerfile: Dockerfile.backup
depends_on:
- akb-django-app
volumes:
- /var/run/docker.sock:/var/run/docker.sock
env_file:
- secret.env # RCLONE_CONFIG
restart: on-failure
volumes:
postgres-data:
networks:
app:
proxy:
external: true
name: proxy