Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
agotool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Lyon
agotool
Commits
1520a04c
Commit
1520a04c
authored
Nov 26, 2018
by
David Lyon
Browse files
Options
Downloads
Patches
Plain Diff
status quo at cpr sund ku
parent
d683fa7e
Branches
sund
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
docker-compose.yml
+5
-10
5 additions, 10 deletions
docker-compose.yml
with
5 additions
and
10 deletions
docker-compose.yml
+
5
−
10
View file @
1520a04c
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment