-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathcompose.yaml.example
More file actions
74 lines (67 loc) · 2.22 KB
/
Copy pathcompose.yaml.example
File metadata and controls
74 lines (67 loc) · 2.22 KB
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
services:
galactic-science-opm:
build: .
# env_file: "opm-secrets.env"
depends_on:
- galactic-science-opm-db
volumes:
- ${DJANGO_STATIC_DIR:-./_static}:/galactic_science_opm/_static
- ${DJANGO_DATA_DIR:-./data}:/galactic_science_opm/data
environment:
DB_HOST: galactic-science-opm-db
DB_NAME: galactic_science_opm
DB_USER: ${PSQL_USER}
DB_PASSWORD: ${PSQL_PASS}
DJANGO_DEBUG: ${DJANGO_DEBUG}
DJANGO_SECRET_KEY: ${DJANGO_SECRET_KEY}
DJANGO_ALLOWED_HOSTS: ${DJANGO_ALLOWED_HOSTS}
DJANGO_CSRF_TRUSTED_ORIGIN: ${DJANGO_CSRF_TRUSTED_ORIGIN}
frontend-proxy:
image: nginx:latest
ports:
- "${EXT_PORT:-8000}:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- ${DJANGO_STATIC_DIR:-./_static}:/static:ro
- ${DJANGO_DATA_DIR:-./data}:/data:ro
depends_on:
- galactic-science-opm
galactic-science-opm-db:
image: ${PSQL_IMAGE}
environment:
POSTGRES_USER: ${PSQL_USER}
POSTGRES_PASSWORD: ${PSQL_PASS}
POSTGRES_DB: galactic_science_opm
volumes:
- ${OPM_PSQL_VOLUME}:/var/lib/postgresql/data
## # The db_worker management command comes with the django-task INSTALLED_APP.
## # This is for running long-running task in the background. For example, to
## # gather forced photometry.
##
## galactic-science-opm-worker:
## build: .
## depends_on:
## - galactic-science-opm-migrate
## - galactic-science-opm-db
## environment:
## DB_HOST: galactic-science-opm-db
## DB_NAME: galactic_science_opm
## DB_USER: opm
## DB_PASSWORD: opm
## entrypoint: poetry run python manage.py db_worker -v3
## # The readstreams management command comes from the tom_alertstreams
## # INSTALLED_APP. This starts the configured alert stream listeners.
##
## galactic-science-opm-alert-listener:
## build: .
## env_file: "opm-secrets.env"
## depends_on:
## - galactic-science-opm-migrate
## - galactic-science-opm-db
## environment:
## DB_HOST: galactic-science-opm-db
## DB_NAME: galactic_science_opm
## DB_USER: opm
## DB_PASSWORD: opm
## entrypoint: poetry run python manage.py readstreams -v3
# volumes: