mirror of
https://github.com/i701/sarlink-portal-api.git
synced 2025-02-22 13:12:01 +00:00
31 lines
564 B
YAML
31 lines
564 B
YAML
|
services:
|
||
|
api:
|
||
|
build: .
|
||
|
command: python manage.py runserver 0.0.0.0:8000
|
||
|
volumes:
|
||
|
- ./:/usr/src/app/
|
||
|
ports:
|
||
|
- 8000:8000
|
||
|
env_file:
|
||
|
- ./.env
|
||
|
depends_on:
|
||
|
- db
|
||
|
- redis
|
||
|
|
||
|
db:
|
||
|
image: postgres:15
|
||
|
volumes:
|
||
|
- postgres_data:/var/lib/postgresql/data/
|
||
|
environment:
|
||
|
- POSTGRES_USER=${POSTGRES_USER}
|
||
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||
|
- POSTGRES_DB=${POSTGRES_DATABASE}
|
||
|
|
||
|
redis:
|
||
|
image: "redis:alpine"
|
||
|
restart: always
|
||
|
expose:
|
||
|
- "6379"
|
||
|
volumes:
|
||
|
postgres_data:
|