-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
75 lines (68 loc) · 1.54 KB
/
docker-compose.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
74
75
version: '3'
services:
database:
image: postgres:10
container_name: database
expose:
- 5432
volumes:
- postgres_data:/var/lib/postgresql/data/
- postgres_backups:/pg_backups
environment:
- POSTGRES_USER=postgres
- POSGRES_PASSWORD=postgres
- TZ=Europe/Oslo
- LANG=en_US.UTF-8
networks:
- database_network
django:
container_name: django
env_file:
- .env
build: .
volumes:
- .:/code
- static_volume:/static
- media_volume:/media
depends_on:
- database
networks:
- nginx_network
- database_network
nginx:
image: linuxserver/letsencrypt
container_name: nginx
ports:
- 80:80
- 443:443
volumes:
- nginx_data:/config
- ./config/nginx/production.conf:/config/nginx/site-confs/default
- ./config/dns/digitalocean.ini:/config/dns-conf/digitalocean.ini
- static_volume:/static
- media_volume:/media
depends_on:
- django
networks:
- nginx_network
environment:
- PUID=1000
- PGID=1000
- EMAIL=jakobgm@gmail.com
- URL=fysmat.no
- EXTRA_DOMAINS=wikilinks.no,arkiv.wikilinks.no,fysmat.wikilinks.no,eksamen.wikilinks.no,kyb.wikilinks.no,data.wikilinks.no
- TZ=Europe/Oslo
- VALIDATION=dns
- DNSPLUGIN=digitalocean
- STAGING=false
volumes:
postgres_data:
postgres_backups:
static_volume:
media_volume:
nginx_data:
networks:
nginx_network:
driver: bridge
database_network:
driver: bridge