version: '3.4'
networks:
password_manager: {}
services:
passmanager:
build:
context: .
dockerfile: ./Dockerfile
restart: always
environment:
DB_HOST: db
DB_USER: manager
DB_PASS: passwd123!
DB_NAME: passmanager
TG_TOKEN: ${TG_TOKEN}
depends_on:
- db
- password_manager
db:
image: stnicolay/mariadb-aria
MYSQL_ROOT_PASSWORD: example123!
MYSQL_DATABASE: passmanager
MYSQL_USER: manager
MYSQL_PASSWORD: passwd123!
volumes:
- ./data:/var/lib/mysql