Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
deploy: add logging config to Docker; use settings.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemSBulgakov committed Feb 18, 2024
1 parent efc4203 commit 50f858e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
12 changes: 11 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
# Ignore cache files
# Ignore everything
*

# Except code
!/src/
!/deploy/docker-entrypoint.sh
!/pyproject.toml
!/poetry.lock
!/logging.yaml

# And ignore cache files in the code
__pycache__
2 changes: 1 addition & 1 deletion deploy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ RUN chmod +x /docker-entrypoint.sh
RUN groupadd -g 1500 poetry && \
useradd -m -u 1500 -g poetry poetry

COPY --chown=poetry:poetry ./src /code/src
COPY --chown=poetry:poetry . /code
USER poetry
WORKDIR /code

Expand Down
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ services:
depends_on:
- redis
restart: always
env_file: .env
volumes:
- ./settings.yaml:/code/settings.yaml
networks:
- default
- music-room
Expand Down

0 comments on commit 50f858e

Please sign in to comment.