Реализовл подгрузку .env через docker-compose

This commit is contained in:
Григорич 2023-06-06 14:40:06 +03:00
parent 2c501cb59e
commit ab67698655
2 changed files with 3 additions and 3 deletions

View File

@ -11,6 +11,4 @@ RUN python -m pip install --no-cache-dir --upgrade pip \
COPY /src .
COPY .env .
CMD ["python", "main.py"]

View File

@ -3,4 +3,6 @@ services:
etl:
build: .
container_name: etl
restart: always
restart: always
env_file:
- .env