Skip to content

Commit

Permalink
Add psql docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
austinhlopez committed Jan 10, 2021
1 parent f2407dc commit a4d94e8
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
22 changes: 22 additions & 0 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
version: "3.4"
services:
psql:
build: ./psql/
container_name: psql
ports:
- "5435:5435"
- "5432:5432"
networks:
- server
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
volumes:
- dbdata:/var/lib/postgres
- dbdata:/var/lib/postgresql/data
volumes:
dbdata:
external: true
name: a4e2b5873d8f7ef2344825ad5c0b1b0a98423e173aa549256b69efdc1c648750
networks:
server:
3 changes: 3 additions & 0 deletions docker/psql/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM postgres:12.0

RUN apt-get update

0 comments on commit a4d94e8

Please sign in to comment.