docker-spotweb icon indicating copy to clipboard operation
docker-spotweb copied to clipboard

Cannot connect to database witk mapped docker-compose

Open gcraenen opened this issue 3 years ago • 0 comments

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"

gcraenen avatar Sep 09 '21 18:09 gcraenen