Compare commits

...

2 Commits

Author SHA1 Message Date
Jean-Claude 289f5abbf0 Merge branch 'fix/build-n-run-issues' of jonas/DynDns into master 2020-12-19 08:53:35 +01:00
Jonas Sulzer a9731b30a4
🐛 FIX: build / run issues with docker mount points
- using ./ instead of ${PWD} is more universal and doesn't depend on the corresponding env variable to be set in the environment
- when mounting /app/lastIp, docker wants this to be a directory and not a file for it to work

Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
2020-12-18 23:43:36 +01:00
2 changed files with 4 additions and 4 deletions

View File

@ -4,9 +4,9 @@ services:
build: '.'
container_name: dyndns
volumes:
- ${PWD}/src:/app/src
- ${PWD}/log:/app/log
- ${PWD}/lastIp:/app/lastIp
- ./src:/app/src
- ./log:/app/log
- ./lastIp:/app/lastIp
env_file:
- app.env

View File

@ -18,7 +18,7 @@ logging.config.fileConfig(fname=loggerConfigPath, defaults={'logfilename': f'{ho
logger = logging.getLogger(__name__)
ipFile = f'{home}/lastIp'
ipFile = f'{home}/lastIp/ip'
timeout = 60
if __name__ == "__main__":