in between state before converting to pathlib
This commit is contained in:
27
compose.yml
27
compose.yml
@@ -2,17 +2,18 @@ version: "3"
|
||||
services:
|
||||
app:
|
||||
container_name: python-app
|
||||
command: python -m uvicorn app.main:app --host 0.0.0.0 --port 80
|
||||
biuld:
|
||||
# command: python -m uvicorn app.main:app --host 0.0.0.0 --port 80
|
||||
build:
|
||||
context: .
|
||||
dockerfile: DOCKERFILE
|
||||
dockerfile: Dockerfile
|
||||
volumes:
|
||||
- ./app:/python
|
||||
- ./unizeug:/unizeug
|
||||
- ./unizeug:/unizeug:source
|
||||
ports:
|
||||
- 80:80
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
ENTRY_COMMAND: python -m uvicorn main:app --host 0.0.0.0 --port 80
|
||||
APP_LOG_PATH: /python/app.log
|
||||
APP_ROOT_PATH: /python
|
||||
UNIZEUG_PATH: /unizeug
|
||||
@@ -30,24 +31,32 @@ services:
|
||||
image: mariadb
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
MARAIDB_ROOT_PASSWORD: DBPassword
|
||||
MARIADB_ROOT_PASSWORD: DBPassword
|
||||
MARIADB_USER: app
|
||||
UNIZEUG_PATH: /unizeug
|
||||
MARIADB_PASSWORD: DBPassword
|
||||
MARIADB_DATABASE: Unizeug
|
||||
TZ: "Europe/Vienna"
|
||||
healthcheck:
|
||||
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
|
||||
start_period: 10s
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
volumes:
|
||||
- ./mariadb:/var/lib/mysql
|
||||
scaner:
|
||||
container_name: python-scaner
|
||||
command: python /python/init.py
|
||||
biuld:
|
||||
# command: python /python/init.py
|
||||
build:
|
||||
context: .
|
||||
dockerfile: DOCKERFILE
|
||||
dockerfile: Dockerfile
|
||||
volumes:
|
||||
- ./app:/python
|
||||
- ./unizeug
|
||||
- ./unizeug:/unizeug:source
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
ENTRY_COMMAND: python /python/init.py
|
||||
UNIZEUG_PATH: /unizeug
|
||||
DB_HOST: db
|
||||
DB_USER: app
|
||||
|
||||
Reference in New Issue
Block a user