-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
48 lines (45 loc) · 1.48 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
# Inspired by https://docs.docker.com/compose/django/
version: '3'
services:
db:
# NOTE: No persistance storage configured.
# Using v14 to prevent schema permissions. See also docker-init-db.sql.
# See: https://hub.docker.com/_/postgres/
image: postgis/postgis:14-3.4
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
volumes:
- ./docker-init-db.sql:/docker-entrypoint-initdb.d/init_db.sql
web:
build: .
image: maykinmedia/open-producten:latest
environment:
- DJANGO_SETTINGS_MODULE=open_producten.conf.docker
- SECRET_KEY=${SECRET_KEY:-django-insecure-@4wj9(+*bu7*v&%on7+e_8!d1ckl%r=6+sz#d2!pw^@lb0+=}
- DB_NAME=open_producten
- DB_USER=open_producten
- DB_HOST=db
# Only allow all hosts for development/testing purposes!
- ALLOWED_HOSTS=*
ports:
- 8000:8000
depends_on:
- db
# See: src/open_producten/conf/docker.py
# Optional containers below:
# elasticsearch:
# # NOTE: No persistance storage configured.
# # See: https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html
# image: docker.elastic.co/elasticsearch/elasticsearch:6.2.4
# container_name: elasticsearch
# environment:
# - discovery.type=single-node
# - cluster.routing.allocation.disk.threshold_enabled=false
# ports:
# - 9200:9200
# redis:
# # NOTE: No persistance storage configured.
# # See: https://hub.docker.com/_/redis/
# image: redis
# ports:
# - 6379:6379