# syntax=docker/dockerfile:1
FROM postgis/postgis:16-3.4

ARG POSTGRES_USER=railgame
ARG POSTGRES_PASSWORD=railgame
ARG POSTGRES_DB=railgame_dev

ENV POSTGRES_USER=${POSTGRES_USER} \
    POSTGRES_PASSWORD=${POSTGRES_PASSWORD} \
    POSTGRES_DB=${POSTGRES_DB}

# Bootstrap extensions and companion databases on first run.
COPY initdb/ /docker-entrypoint-initdb.d/

EXPOSE 5432
