Skip to content
Snippets Groups Projects
Commit 1520a04c authored by David Lyon's avatar David Lyon
Browse files

status quo at cpr sund ku

parent d683fa7e
Branches sund
No related tags found
No related merge requests found
......@@ -8,28 +8,23 @@ services:
# named volume, persistent data, lives in special directory from docker
# created to build Postgres data in it, even if Postgres container is removed Postgres data persists.
- "dbdata:/var/lib/postgresql/data"
# named volume. to copy data into with e.g.
# docker run --rm -it --volume ~/modules/cpr/agotool/data:/mounted_data --volume "agotool_agotool_data:/agotool_data" agotool_flaskapp bash
# needed to build DB from files (copy from file)
#- "agotool_data:/agotool_data" # version 1
- .:/agotool_data # version 2, bind mount to mount files from the host to the container
- "agotool_data:/agotool_data" # version 1
#- .:/agotool_data # version 2, bind mount to mount files from the host to the container
### Atlas
# - /mnt/mnemo5/dblyon/agotool:/agotool_data
ports: # expose port in order to connect to PostgreSQL
- "5432:5432"
env_file:
- ./app/env_file
networks:
- db_nw
flaskapp:
restart: on-failure
image: "agotool"
build: . # uncomment to build from Dockerfile, else pull from dockerhub
# image: dblyon/python_agotool:latest
volumes:
......@@ -39,8 +34,8 @@ services:
# local changes are reflected in docker
- ./app/:/opt/services/flaskapp/src
### needed for access to download new resources
#- "agotool_data:/agotool_data" # version 1
- .:/agotool_data # version 2, # bind mounted volume from host, e.g. RW access from container.
- "agotool_data:/agotool_data" # version 1
#- .:/agotool_data # version 2, # bind mounted volume from host, e.g. RW access from container.
### Atlas
# - /mnt/mnemo5/dblyon/agotool/app/:/opt/services/flaskapp/src
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment