Skip to content

Commit

Permalink
feat: Docker-compose.yaml for config containers
Browse files Browse the repository at this point in the history
  • Loading branch information
IWantSomeFish authored and the-homeless-god committed Aug 31, 2024
1 parent 17d9396 commit 54d6786
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions application/backend/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
services:
django:
env_file:
- .env
build: .
container_name: django
command: python manage.py runserver 0.0.0.0:8000
volumes:
- .:/usr/src/app
ports:
- 8000:8000
depends_on:
- pgdb
pgdb:
image: postgres
env_file:
- .env
environment:
- POSTGRES_DB=lighttraffic_db
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
container_name: pgdb
volumes:
- pgdbdata:/var/lib/postgresql/data/
ports:
- 5432:5432
volumes:
pgdbdata: null

0 comments on commit 54d6786

Please sign in to comment.