forked from Simplon-hdf/Simpluedo-ARES
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
20 lines (16 loc) · 737 Bytes
/
Dockerfile
File metadata and controls
20 lines (16 loc) · 737 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Use the official PostgreSQL image as the base image
FROM postgres:16.4
# Set environment variables for PostgreSQL
ENV POSTGRES_USER=mademoiselle_rose
ENV POSTGRES_PASSWORD=danslasalledebillardavecunpoignard
ENV POSTGRES_DB=simpluedo
# Copy initialization scripts (optional)
# If you have SQL scripts to initialize your database, place them in a folder like 'docker-entrypoint-initdb.d/'
# They will automatically be executed at startup.
COPY ./data/01b-tables-roles-docker.sql /docker-entrypoint-initdb.d/
COPY ./data/02-seed-data.sql /docker-entrypoint-initdb.d/
COPY ./data/03-procedures-functions.sql /docker-entrypoint-initdb.d/
# Expose PostgreSQL default port
EXPOSE 5432
# Set the command to run PostgreSQL
CMD ["postgres"]