diff --git a/Dockerfile b/Dockerfile index 69d50cba..43b03e08 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/docker-compose.indigo-onedb.yml b/docker-compose.indigo-onedb.yml new file mode 100644 index 00000000..8fa63693 --- /dev/null +++ b/docker-compose.indigo-onedb.yml @@ -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: + \ No newline at end of file diff --git a/docker-compose.indigo.yml b/docker-compose.indigo.yml new file mode 100644 index 00000000..619e816c --- /dev/null +++ b/docker-compose.indigo.yml @@ -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: + \ No newline at end of file