Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot connect to database witk mapped docker-compose #38

Open
gcraenen opened this issue Sep 9, 2021 · 0 comments
Open

Cannot connect to database witk mapped docker-compose #38

gcraenen opened this issue Sep 9, 2021 · 0 comments

Comments

@gcraenen
Copy link

gcraenen commented Sep 9, 2021

Having exactly the same issues as refered to in this thread https://githubmemory.com/repo/jgeusebroek/docker-spotweb/issues/23

Can solve this with the solution in thread, copying mapped dbsettings file into docker file and disabling mapped volume. But this is no persistent solution, because it is lost when recreating or restarting the dockerfile.

This is the docker-compose I am using:

spotweb:
image: jgeusebroek/spotweb:latest
container_name: spotweb
restart: unless-stopped
networks:
- t2_proxy
- default
security_opt:
- no-new-privileges:true

#ports:

#- "$SPOTWEB_PORT:88"

volumes:
 - $DOCKERDIR/appdata/spotweb:/config
environment:
  PUID: $PUID
  PGID: $PGID
  TZ: $TZ
  SPOTWEB_DB_HOST: $MARIADB_HOST
  SPOTWEB_DB_PORT: $MARIADB_PORT
  SPOTWEB_DB_NAME: spotweb
  SPOTWEB_DB_USER: $SPOTWEB_DB_USER
  SPOTWEB_DB_PASS: $SPOTWEB_DB_PASS
  SPOTWEB_CRON_RETRIEVE: $SPOTWEB_CRON_RETRIEVE
labels:
  - "traefik.enable=true"

#HTTP Routers

  - "traefik.http.routers.spotweb-rtr.entrypoints=https"
  - "traefik.http.routers.spotweb-rtr.rule=Host(`spotweb.$DOMAINNAME0`)"

#Middlewares

  - "traefik.http.routers.spotweb-rtr.middlewares=chain-no-auth@file"

#HTTP Services

  - "traefik.http.routers.spotweb-rtr.service=spotweb-svc"
  - "traefik.http.services.spotweb-svc.loadbalancer.server.port=80"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant