-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDocker-compose.template.yml
55 lines (47 loc) · 1.17 KB
/
Docker-compose.template.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
version: '3.2'
volumes:
static_volume:
postgres_data:
services:
cores:
build:
context: ./fancybin
links:
- postgres:postgres
environment:
# basic setup
- HOSTNAME=fancybin # which hostname should django accept requests from (in addition to localhost)
- SECRET_KEY=uhriagseruiguaeiorghozagraioehgr # make some entropy
- DEBUG=False # turn on the *very* (dangerously) verbose error pages
# database
- POSTGRES_HOST=postgres # hostname of psql in docker stack
- POSTGRES_PASSWORD=password # pick a password
- POSTGRES_USER=django
# version footer
- CHANGELOGLINK=False
depends_on:
- postgres
restart: always
volumes:
- static_volume:/srv/static
postgres:
image: postgres
restart: always
environment:
- POSTGRES_DB=fancybin
- POSTGRES_USER=django
- POSTGRES_PASSWORD=password
command: postgres
volumes:
- postgres_data:/var/lib/postgresql/data
nginx:
build:
context: ./nginx
ports:
- 80:80
- 443:443
volumes:
- static_volume:/srv/static
depends_on:
- fancybin
restart: always