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