🐛 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>
This commit is contained in:
parent
67d8eda971
commit
a9731b30a4
|
@ -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
|
||||
|
||||
|
|
|
@ -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__":
|
||||
|
|
Loading…
Reference in New Issue