Skip to content
Snippets Groups Projects
Commit 37eff861 authored by Erkan Karabulut's avatar Erkan Karabulut
Browse files

remove old postgress db implementation

parent 7eaae984
No related branches found
No related tags found
No related merge requests found
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_DB=test_db
\ No newline at end of file
FROM postgres:latest
RUN localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
ENV LANG en_US.utf8
# change local date time to Europe/Berlin
RUN apt-get install tzdata && \
cp /usr/share/zoneinfo/Europe/Berlin /etc/localtime && \
echo "Europe/Berlin" > /etc/timezone
EXPOSE 5432
COPY setup_db.sql /docker-entrypoint-initdb.d/
CREATE USER test_user WITH ENCRYPTED PASSWORD 'test_user_pwd';
GRANT ALL PRIVILEGES ON DATABASE test_db TO test_user;
\ No newline at end of file
#!/bin/bash
docker build . -t database:1.0
docker run -d -p 5432:5432 --env-file=.env --restart=always database:1.0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment