base service with authentication and user creation
This commit is contained in:
13
db/Dockerfile
Normal file
13
db/Dockerfile
Normal file
@@ -0,0 +1,13 @@
|
||||
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
|
||||
Reference in New Issue
Block a user