Before move to Gunicorn

This commit is contained in:
Lucas Mathews
2024-06-15 20:11:04 +02:00
parent a1d326c018
commit 1c614f23b6
11 changed files with 96 additions and 56 deletions

View File

@@ -1,5 +1,3 @@
version: '3.8'
services:
db:
image: postgres:latest
@@ -12,16 +10,25 @@ services:
volumes:
- db_data:/var/lib/postgresql/data
ports:
- "5432:5432"
- 5432:5432
networks:
- bank
api:
build: .
build:
context: .
dockerfile: Dockerfile
container_name: banking_system_api
restart: unless-stopped
depends_on:
- db
ports:
- "8000:80"
- 8066:8066
networks:
- bank
volumes:
db_data:
networks:
bank: