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

Fix pg migration in Dockerfile #94

Merged
merged 1 commit into from
May 23, 2024

Conversation

altafan
Copy link
Collaborator

@altafan altafan commented May 23, 2024

Closes #93.

The bug has been introduced in dd0b884bcfa26defd84d5c2b1d7c254156d60d5b.

Please @tiero @louisinger review this.

@altafan altafan changed the title Fix pg migration in dockerfile Fix pg migration in Dockerfile May 23, 2024
@altafan
Copy link
Collaborator Author

altafan commented May 23, 2024

you can use the following compose file to test this out:

version: "3.7"

services:
  oceand:
    container_name: oceand
    build: 
      context: .
      dockerfile: Dockerfile
    restart: unless-stopped
    environment:
      - OCEAN_LOG_LEVEL=5
      - OCEAN_NO_TLS=true
      - OCEAN_NO_PROFILER=true
      - OCEAN_ELECTRUM_URL=ssl://blockstream.info:465
      - OCEAN_NETWORK=testnet
      - OCEAN_UTXO_EXPIRY_DURATION_IN_SECONDS=60
      - OCEAN_DB_HOST=oceand-db
      - OCEAN_DB_NAME=oceand-db
      - OCEAN_DB_PASSOWRD=secret
    ports:
      - "18000:18000"
  oceand-db:
    container_name: oceand-db
    image: postgres
    restart: unless-stopped
    environment:
      - POSTGRES_USER=root
      - POSTGRES_PASSWORD=secret
      - POSTGRES_DB=oceand-db
    ports:
      - "5432:5432"

@louisinger
Copy link
Contributor

tACK

@altafan altafan merged commit 39169e4 into vulpemventures:master May 23, 2024
3 checks passed
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

Successfully merging this pull request may close these issues.

Dockerized with Postgres fail to find migration files
2 participants