-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #62 from TimNekk/develop
Add Docker Support
- Loading branch information
Showing
10 changed files
with
148 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
OZON_START_TIME=07:30 | ||
WILDBERRIES_START_TIME=08:00 | ||
TZ=Europe/Moscow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
FROM python:3.10-slim | ||
|
||
WORKDIR /usr/src/app | ||
|
||
COPY . . | ||
|
||
RUN pip install --no-cache-dir -r requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
version: '3.8' | ||
|
||
services: | ||
ozon: | ||
image: marketplaces-goods-tracker-image | ||
container_name: marketplaces-goods-tracker-ozon | ||
build: | ||
context: . | ||
restart: unless-stopped | ||
volumes: | ||
- .:/usr/src/app | ||
env_file: | ||
- .env | ||
environment: | ||
- TZ | ||
- START_TIME=${OZON_START_TIME} | ||
command: python run.py -oz -u -t ${OZON_START_TIME} | ||
|
||
wildberries: | ||
image: marketplaces-goods-tracker-image | ||
container_name: marketplaces-goods-tracker-wildberries | ||
build: | ||
context: . | ||
restart: unless-stopped | ||
volumes: | ||
- .:/usr/src/app | ||
env_file: | ||
- .env | ||
environment: | ||
- TZ | ||
- START_TIME=${WILDBERRIES_START_TIME} | ||
command: python run.py -wb -u -t ${WILDBERRIES_START_TIME} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
start: | ||
docker compose up -d | ||
|
||
start-oz: | ||
docker compose up -d ozon | ||
|
||
start-wb: | ||
docker compose up -d wildberries | ||
|
||
stop: | ||
docker compose down | ||
|
||
restart: | ||
docker compose down | ||
docker compose up -d | ||
|
||
logs: | ||
docker compose logs -f | ||
|
||
build: | ||
docker compose build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters