14 lines
304 B
Docker
14 lines
304 B
Docker
FROM docker.io/library/postgres:15
|
|
|
|
# Set environment variables
|
|
ENV POSTGRES_USER=chatapp
|
|
ENV POSTGRES_PASSWORD=secret
|
|
ENV POSTGRES_DB=chatapp
|
|
|
|
# Copy the initialization SQL script
|
|
COPY init.sql /docker-entrypoint-initdb.d/
|
|
COPY mock_data.sql /docker-entrypoint-initdb.d/
|
|
|
|
# Expose port 5432
|
|
EXPOSE 5432
|