30 lines
503 B
YAML
30 lines
503 B
YAML
version: "3.7"
|
|
services:
|
|
app:
|
|
container_name: backend_labs
|
|
image: backend_labs
|
|
build:
|
|
context: .
|
|
env_file:
|
|
- .env
|
|
command: ["/backend_labs/docker/app.sh"]
|
|
ports:
|
|
- "8000:8000"
|
|
volumes:
|
|
- .:/backend_labs
|
|
depends_on:
|
|
- postgres
|
|
|
|
postgres:
|
|
image: postgres:15.3
|
|
container_name: postgres
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data/
|
|
env_file:
|
|
- .env
|
|
ports:
|
|
- "5432:5432"
|
|
|
|
volumes:
|
|
postgres_data:
|