-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.template.yml
101 lines (89 loc) · 2.74 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
version: '3.2'
volumes:
static_volume:
postgres_data:
mkdocs_site:
services:
cores:
build:
context: ./cores
links:
- postgres:postgres
environment:
# basic setup
- HOSTNAME=cores # 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
# authentication (LDAP or Kerberos)
- LDAP_AUTH=False # enable LDAP
- LDAP_AUTH_DIRECT=False # enable direct bind LDAP (only if normal LDAP not enabled)
- LDAP_URI=ldap://dc01.contoso.com # where to bind to
- LDAP_BIND_DN=bind-user # creds for queries
- LDAP_BIND_PASS=password
- LDAP_SEARCH_PATH=OU=Users,OU=All Sites,DC=Contoso,DC=Com # where to search for users
- LDAP_LOGGING=False # extra debug logs
- KERBEROS_AUTH=False # enable (experimental) Kerberos authentication
- KERBEROS_REALM=contoso.com
- KERBEROS_SERVICE=dc02.contoso.com/FINANCE
# mail
- SMTP_SERVER=False # set server here if you want emails
- SMTP_PORT=25
depends_on:
- postgres
restart: always
volumes:
- static_volume:/srv/static
postgres:
image: postgres
restart: always
environment:
- POSTGRES_DB=cores
- 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
- mkdocs_site:/srv/docs
depends_on:
- cores
- docs
restart: always
docs:
image: squidfunk/mkdocs-material
volumes:
- type: bind
source: ./mkdocs
target: /docs
- mkdocs_site:/site
command: build
livesync:
build:
context: ./cores-livesync
environment:
# IMPORTANT:
# Do not set SYNC_ENABLED=true unless you have got your inventory setup and generated
# an auth token for the livesync to talk to the API
- SYNC_ENABLED=false
- CORES_INSTANCE=http://nginx # internal url of app within compose stack
- CORES_TOKEN=[authentication token] # created through Django admin
- CORES_IDENT=lab-livesync # whatever you want to call this source
- SSHPASS= # root password for .90 boxes for the ssh/scp bot
depends_on:
- cores
- nginx
command: ./start.sh
volumes:
- .cores-livesync/logs:/cores-log/