Giter Site home page Giter Site logo

Comments (5)

fashberg avatar fashberg commented on August 18, 2024

please share your docker-compose.yaml file or docker config. looks very like a container-misconfig

from backend.

lukasl96 avatar lukasl96 commented on August 18, 2024

version: '3.7'

services:
server:
image: seatsurfing/backend
restart: always
networks:
sql:
http:
ports:
- 8080:8080
environment:
POSTGRES_URL: 'postgres://seatsurfing:DB-PW@db/seatsurfing?sslmode=disable'
JWT_SIGNING_KEY: 'JWS-KEY'
BOOKING_UI_BACKEND: 'booking-ui:3001'
ADMIN_UI_BACKEND: 'admin-ui:3000'
PUBLIC_URL: 'http://ll-docker-01:8080'
FRONTEND_URL: 'http://ll-docker-01:8080'
booking-ui:
image: seatsurfing/booking-ui
restart: always
networks:
http:
environment:
FRONTEND_URL: 'http://ll-docker-01:8080'
admin-ui:
image: seatsurfing/admin-ui
restart: always
networks:
http:
environment:
FRONTEND_URL: 'http://ll-docker-01:8080'
db:
image: postgres:12
restart: always
networks:
sql:
volumes:
- db:/opt/seatsurfing/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: DB-PW
POSTGRES_USER: seatsurfing
POSTGRES_DB: seatsurfing

volumes:
db:

networks:
sql:
http:

from backend.

fashberg avatar fashberg commented on August 18, 2024

that's why:
image

from backend.

fashberg avatar fashberg commented on August 18, 2024

postgres stores inside the container at /var/lib/postgres/data. unchangeable path.
You persist the path /opt/seatsurfing/var/lib/postgres/data - but no one uses it.

If you don't want to use volumes: local path on the left side:

volumes:
- /opt/seatsurfing/postgres:/var/lib/postgresql/data

and remove the other global volumes-section.

from backend.

lukasl96 avatar lukasl96 commented on August 18, 2024

Sorry for the misconfiguration, I mixed up the syntax in a hurry.

Thank you for the quick replies, everything is now working as expected! :)

from backend.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.