34 lines
650 B
YAML
34 lines
650 B
YAML
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
|
|
networks:
|
|
- password_manager
|
|
|
|
db:
|
|
image: stnicolay/mariadb-aria
|
|
restart: always
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD: example123!
|
|
MYSQL_DATABASE: passmanager
|
|
MYSQL_USER: manager
|
|
MYSQL_PASSWORD: passwd123!
|
|
volumes:
|
|
- ./data:/var/lib/mysql
|
|
networks:
|
|
- password_manager
|