Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] CP-28572 docker compose file to run w/ ecosystem_database_app #1

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ RUN apt-get update \
&& rm -rf /var/lib/apt/lists/* \
&& useradd -m -u 1000 -s /bin/bash bety

# make log writable
RUN chown -R bety:bety /home/bety/log/
RUN chmod -R 755 /home/bety/log/

# change to working directory
USER bety
WORKDIR /home/bety
Expand Down
26 changes: 26 additions & 0 deletions docker-compose.indigo-onedb.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
version: "3"

services:
# BETY rails frontend to the database
bety:
# build: . # to build after updating Dockerfile
# image: bety_local-bety_local:latest # or pecan/bety:latest to pull from dockerhub (?)
image: pecan/bety:${BRANCH:-latest}
networks:
- bety
ports:
- 8000
environment:
- UNICORN_WORKER_PROCESSES=1
- SECRET_KEY_BASE=thisisnotasecret
- PGUSER=bety
- PGOPTIONS=-c search_path=ecosystem_observation_app # This sets the schema to use for PostgreSQL queries
- PGDATABASE=postgres
- PGHOST=host.docker.internal
- PGPORT=19840 # OneDB Ecosystem Observation App - Yggdrasil - Development
# - PGHOST=5432 # Docker
restart: unless-stopped

networks:
bety:

25 changes: 25 additions & 0 deletions docker-compose.indigo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
version: "3"

services:
# BETY rails frontend to the database
bety:
# build: . # to build after updating Dockerfile
# image: bety_local-bety_local:latest # or pecan/bety:latest to pull from dockerhub (?)
image: pecan/bety:${BRANCH:-latest}
networks:
- bety
ports:
- 8000
environment:
- UNICORN_WORKER_PROCESSES=1
- SECRET_KEY_BASE=thisisnotasecret
- PGUSER=bety
- PGOPTIONS=-c search_path=ecosystem_observation_app # This sets the schema to use for PostgreSQL queries
- PGDATABASE=postgres
- PGHOST=host.docker.internal
- PGPORT=5432 # 19840 # Ecosystem Observation App - Yggdrasil - Development
restart: unless-stopped

networks:
bety: