Skip to content

Commit

Permalink
feat: postgres docker
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexXi19 committed Sep 29, 2022
1 parent c8c7897 commit b31eecb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ frontend:

backend:
docker-compose -f build/docker-compose.yml up backend redis nginx

postgres:
docker-compose -f build/docker-compose.yml up postgres
13 changes: 13 additions & 0 deletions build/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,16 @@ services:
depends_on:
- backend
- frontend
postgres:
container_name: bt_postgres
image: postgres:latest
volumes:
- ./bt_main.dump:/bt_main.dump
- ./postgres-data:/var/lib/postgresql/data
ports:
- "54321:5432"
environment:
- "POSTGRES_DB=bt_main"
- "POSTGRES_USER=bt"
- "POSTGRES_PASSWORD=bt"

0 comments on commit b31eecb

Please sign in to comment.