34 lines
639 B
YAML
34 lines
639 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: 12345
|
||
|
depends_on:
|
||
|
- db
|
||
|
networks:
|
||
|
- password_manager
|
||
|
|
||
|
db:
|
||
|
image: jc21/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
|