openstreetmap-website/docker-compose.yml
Jamie Alessio d5fe598a18 Postgres is no longer starting
Fails with:
db_1   | Error: Database is uninitialized and superuser password is not specified.
db_1   |        You must specify POSTGRES_PASSWORD for the superuser. Use
db_1   |        "-e POSTGRES_PASSWORD=password" to set it in "docker run".
db_1   |
db_1   |        You may also use POSTGRES_HOST_AUTH_METHOD=trust to allow all connections
db_1   |        without a password. This is *not* recommended. See PostgreSQL
db_1   |        documentation about "trust":
db_1   |        https://www.postgresql.org/docs/current/auth-trust.html

Appears to be related to
https://github.com/docker-library/postgres/issues/681
2021-01-28 12:03:58 -08:00

25 lines
463 B
YAML

version: "3"
services:
web:
build:
context: .
volumes:
- .:/app
ports:
- "3000:3000"
command: bundle exec rails s -p 3000 -b '0.0.0.0'
depends_on:
- db
db:
build:
context: .
dockerfile: docker/postgres/Dockerfile
ports:
- "54321:5432"
environment:
POSTGRES_HOST_AUTH_METHOD: trust
POSTGRES_DB: openstreetmap
volumes:
- ./docker-db-data:/var/lib/postgresql/data