Last active
September 11, 2022 06:43
-
-
Save robconery/cdbf89b2bc3c13faa6982ff24a45ebbc to your computer and use it in GitHub Desktop.
Local Postgres with PGWeb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3" | |
services: | |
postgres: | |
build: . | |
ports: | |
- "8088:5432" | |
container_name: ff-pg | |
pgweb: | |
container_name: ff-web | |
restart: always | |
image: sosedoff/pgweb | |
ports: | |
- "8080:8081" | |
links: | |
- postgres:postgres | |
environment: | |
- DATABASE_URL=postgres://docker:docker@postgres:5432/ff?sslmode=disable | |
depends_on: | |
- postgres |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM postgres:14-alpine | |
COPY ff.sql /docker-entrypoint-initdb.d/seed.sql | |
ENV POSTGRES_USER=docker POSTGRES_PASSWORD=docker POSTGRES_DB=ff | |
EXPOSE 5432 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment