This repository has been archived on 2023-10-01. You can view files and clone it, but cannot push or open issues or pull requests.
PyNyaaTa/docker-compose.yml
2019-11-30 18:09:30 +01:00

32 lines
579 B
YAML

version: "2.4"
services:
app:
build: .
ports:
- "5000:5000"
entrypoint: python3 app.py
working_dir: /app
environment:
FLASK_APP: app.py
FLASK_ENV: development
FLASK_PORT: 5000
MYSQL_USER: root
MYSQL_PASSWORD: root
MYSQL_DATABASE: www
MYSQL_HOST: db
ADMIN_USERNAME: admin
ADMIN_PASSWORD: secret
volumes:
- .:/app
db:
image: mariadb
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: www
volumes:
- ./.db:/var/lib/mysql