generated from geekiot/python-template
Add [docker]: add logs volume & update commands
This commit is contained in:
parent
8e35f456f9
commit
83e91c58c4
1 changed files with 3 additions and 1 deletions
|
|
@ -4,11 +4,13 @@ services:
|
||||||
build:
|
build:
|
||||||
context: ..
|
context: ..
|
||||||
dockerfile: ./docker/Dockerfile
|
dockerfile: ./docker/Dockerfile
|
||||||
command: sh -c "uv run --active --script ./scripts/pybabel.py compile && uv run ./src/main.py"
|
command: sh -c "uv run --active --script ./scripts/pybabel.py compile && uv run --no-dev ./src/main.py"
|
||||||
restart: always
|
restart: always
|
||||||
depends_on:
|
depends_on:
|
||||||
- database
|
- database
|
||||||
- redis
|
- redis
|
||||||
|
volumes:
|
||||||
|
- ../logs:/urfu-daddy/logs:rw
|
||||||
|
|
||||||
database:
|
database:
|
||||||
container_name: ${POSTGRES_HOST}
|
container_name: ${POSTGRES_HOST}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue