StNicolay
c2eca49933
Added database folder Created Dockerfile and config for mariadb image Moved data folder tp database/data/
36 lines
694 B
YAML
36 lines
694 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:
|
|
build:
|
|
context: ./database/
|
|
dockerfile: ./Dockerfile
|
|
restart: always
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD: example123!
|
|
MYSQL_DATABASE: passmanager
|
|
MYSQL_USER: manager
|
|
MYSQL_PASSWORD: passwd123!
|
|
volumes:
|
|
- ./database/data:/var/lib/mysql
|
|
networks:
|
|
- password_manager
|