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

I can't connect my database to my app #1336

Closed
sostenesapollo opened this issue Feb 18, 2025 · 1 comment
Closed

I can't connect my database to my app #1336

sostenesapollo opened this issue Feb 18, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@sostenesapollo
Copy link

To Reproduce

Image

version: '3.8'

I've created an app with this docker-compose, and ran the app using github and buildpacks, any idea how to make it work ?

services:
  pgsql:
    container_name: 'pgsql'
    image: postgres:16-alpine
    ports:
      - '5433:5432'  # Expondo no localhost:5433
    restart: always
    volumes:
      - ./postgres-data:/var/lib/postgresql/data
    environment:
      POSTGRES_USER: postgres
      POSTGRES_PASSWORD: "1234"
      POSTGRES_DB: database_test
      POSTGRES_SHARED_BUFFERS: 2GB

  redis:  
    container_name: redis
    image: redis:6.2-alpine
    restart: always
    ports:
      - '6379:6379'  # Expondo no localhost:6379
    command: redis-server --save 20 1 --loglevel warning --requirepass password
    volumes:
      - ./redis_data:/data

Image

Current vs. Expected behavior

.

Provide environment information

,.

Which area(s) are affected? (Select all that apply)

Docker

Are you deploying the applications where Dokploy is installed or on a remote server?

Same server where Dokploy is installed

Additional context

No response

Will you send a PR to fix it?

Yes

@sostenesapollo sostenesapollo added the bug Something isn't working label Feb 18, 2025
@Siumauricio
Copy link
Contributor

Duplicate #507

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants