34 lines
634 B
YAML
34 lines
634 B
YAML
version: '3'
|
|
services:
|
|
maria_db:
|
|
image: mariadb:11.2
|
|
ports:
|
|
- "3307:3306"
|
|
env_file:
|
|
- .env
|
|
volumes:
|
|
- ./sqlStorage:/var/lib/mysql
|
|
healthcheck:
|
|
test: [ "CMD", "healthcheck.sh", "--connect", "--innodb_initialized" ]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 3
|
|
|
|
app:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
command: python -m app
|
|
env_file:
|
|
- .env
|
|
links:
|
|
- maria_db
|
|
ports:
|
|
- "13807:13000"
|
|
volumes:
|
|
- ./logs:/app/logs
|
|
- ./storedContent:/app/data
|
|
depends_on:
|
|
maria_db:
|
|
condition: service_healthy
|