Skip to content

Commit

Permalink
give up on psql
Browse files Browse the repository at this point in the history
  • Loading branch information
wuputah committed Oct 17, 2024
1 parent a8bca33 commit fa94280
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,34 +11,7 @@ services:
- pgduckdb_data:/var/lib/postgresql/data
- ./docker/postgresql.conf:/etc/postgresql/postgresql.conf
command: postgres -c 'config_file=/etc/postgresql/postgresql.conf'
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d postgres"]
interval: 2s
retries: 15
start_period: 30s
timeout: 2s
restart: always
networks:
- pgduckdb_net
psql:
image: postgres:16
depends_on:
pgduckdb:
condition: service_healthy
stdin_open: true
tty: true
environment:
PGPASSWORD: ${PASSWORD:-duckdb}
command: psql -h 127.0.0.1 -d postgres -U postgres -p ${PORT:-5432}
restart: always
networks:
- pgduckdb_net

volumes:
pgduckdb_data:

networks:
pgduckdb_net:
driver: bridge
driver_opts:
com.docker.network.bridge.host_binding_ipv4: "127.0.0.1"

0 comments on commit fa94280

Please sign in to comment.