-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
105 lines (98 loc) · 3.66 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
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
102
103
104
105
# This is for demonstration/development only!
# Please adjust the settings to reasonable values before deploying to production, see the docs.
version: '3'
volumes:
emp-devl-db-pgdata:
name: emp-devl-db-pgdata
services:
emp-devl:
container_name: emp-devl
build:
context: ./source/emp
restart: unless-stopped
init: true # Faster shutdown.
tty: true # This must be set to colorize output.
depends_on:
emp-devl-db:
condition: service_healthy
healthcheck:
test: ["CMD", "/opt/conda/bin/curl", "--fail", "http://localhost:8080/api/"]
interval: 5s
timeout: 5s
retries: 5
volumes:
- ./source/emp/:/source/emp/
# Activate this volume if you develop on energy_service_generics in parallel.
#- ../energy_service_generics/source/esg/:/opt/conda/lib/python3.8/site-packages/esg/
user: "${USER_ID:-1000}:${GROUP_ID:-1000}"
ports:
- 8080:8080
environment:
# NOTE: Adapt the healthcheck endpoint too if you change this.
- ROOT_PATH=
# Don't go over one here yet. The update mechanism for new permissions isn't process safe yet.
- N_WORKER_PROCESSES=1
- LOGLEVEL=INFO
- HTTPS_ONLY=
- DJANGO_SECRET_KEY=
- DJANGO_ALLOWED_HOSTS=["emp-devl","localhost"]
- DJANGO_DEBUG=TRUE
- DJANGO_ADMINS=
- DJANGO_ADDITIONAL_INSTALLED_APPS=
- DJANGO_SUPERUSER_USERNAME=emp
- DJANGO_SUPERUSER_PASSWORD=emp
- DJANGO_SUPERUSER_EMAIL=emp@example.com
- EMPDB_HOST=emp-devl-db
- EMPDB_PORT=5432
- EMPDB_USER=emp
- EMPDB_PASSWORD=emp
- EMPDB_DBNAME=emp
- CHANNELS_REDIS_HOST=emp-devl-redis
- CHANNELS_REDIS_PORT=
- EMP_ADDITIONAL_APPS=
- EMP_PAGE_TITLE=FZI EMP
- EMP_MANIFEST_JSON_STATIC=
- EMP_FAVICON_ICO_STATIC=
- EMP_TOPBAR_LOGO_STATIC=
- EMP_TOPBAR_NAME_SHORT=
- EMP_TOPBAR_NAME_LONG=
- EMP_URLS_PERMISSION_WHITELIST=
- EMP_HOME_PAGE_URL=
- EMP_LOGIN_PAGE_URL=
- EMP_LOGOUT_PAGE_URL=
emp-devl-db:
container_name: emp-devl-db
image: timescale/timescaledb:2.4.1-pg13
restart: unless-stopped
healthcheck:
test: ["CMD", "sh", "-c", "pg_isready -d $$POSTGRES_DB -U $$POSTGRES_USER "]
interval: 5s
retries: 5
ports:
- 5432:5432
volumes:
- emp-devl-db-pgdata:/var/lib/postgresql/data
environment:
- POSTGRES_USER=emp
- POSTGRES_PASSWORD=emp
- POSTGRES_DB=emp
emp-devl-redis:
container_name: emp-devl-redis
image: redis:7
restart: unless-stopped
emp-devl-demp-dp-interface:
container_name: emp-devl-demp-dp-interface
build:
context: ./source/demo_datapoint_interface
restart: unless-stopped
init: true # Faster shutdown.
tty: true # This must be set to colorize output.
depends_on:
emp-devl:
condition: service_healthy
volumes:
- ./source/demo_datapoint_interface/:/source/demo_datapoint_interface/
# Activate this volume if you develop on energy_service_generics in parallel.
# - ../energy_service_generics/source/esg/:/opt/conda/lib/python3.8/site-packages/esg/
environment:
- EMP_API_URL=http://emp-devl:8080/api