fix: move docker up

This commit is contained in:
nftchance 2022-10-10 22:29:20 -05:00
parent 62a5a25c32
commit d29d40a64a
2 changed files with 6 additions and 4 deletions

View File

@ -10,22 +10,24 @@ services:
POSTGRES_USER: badger
POSTGRES_DB: badger
volumes:
- ./database:/var/lib/postgresql/data
- ./api/database:/var/lib/postgresql/data
hostname: badger_db
ports:
- '5432:5432'
# Run the badger server
web:
container_name: badger_server
build: .
build:
dockerfile: Dockerfile.dev
context: ./api
command: python manage.py runserver 0.0.0.0:8000
restart: always
ports:
- '8000:8000'
env_file:
- .env
- ./api/.env
volumes:
- .:/code
- .:/api/code
depends_on:
- badger_db
links: