-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose_dist.yml
53 lines (48 loc) · 1.97 KB
/
docker-compose_dist.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
services:
# PostgreSQL (empty DB)
db_modulector:
image: postgres:16
restart: always
# Uncomment this to add your custom config
# command: postgres -c 'config_file=/etc/postgresql/postgresql.conf'
environment:
# IMPORTANT: these three params must be the same as POSTGRES_USERNAME, POSTGRES_PASSWORD, POSTGRES_DB
# below in 'web' service respectively
POSTGRES_USER: 'modulector'
POSTGRES_PASSWORD: 'modulector'
POSTGRES_DB: 'modulector'
volumes:
- postgres_data:/var/lib/postgresql/data/
# Uncomment this to add your custom config
# - ./config/postgres/postgres.conf:/etc/postgresql/postgresql.conf
# Django Proxy Server
nginx_modulector:
image: nginx:1.23.3
restart: always
ports:
- '80:8000'
volumes:
- ./config/nginx/conf.d:/etc/nginx/conf.d
depends_on:
- web_modulector
# Django Backend Server
web_modulector:
image: omicsdatascience/modulector:2.2.0
restart: always
depends_on:
- db_modulector
environment:
# Django
DJANGO_SETTINGS_MODULE: 'ModulectorBackend.settings_prod'
POSTGRES_HOST: 'db_modulector' # Name of the modulector DB service previously defined
# CSRF. Django 4.x need this.
# Hosts separated by comma ('http://', 'https://' prefixes are mandatory)
# Example: CSRF_TRUSTED_ORIGINS: 'http://127.0.0.1', 'http://127.0.0.1,https://127.0.0.1:8000', etc
CSRF_TRUSTED_ORIGINS: 'http://modulector:8000,http://www.modulector:8000'
# Allowed host must include the ones set in the NGINX modulector.conf file. Localhost is included for
# health-checks
ALLOWED_HOSTS: 'web,web_modulector,127.0.0.1,localhost'
volumes:
postgres_data:
external: true
name: 'modulector_postgres_data'