30 lines
597 B
YAML
Executable File
30 lines
597 B
YAML
Executable File
networks:
|
|
password_manager: {}
|
|
|
|
services:
|
|
passmanager:
|
|
build: .
|
|
restart: always
|
|
environment:
|
|
TOKEN: ${TOKEN}
|
|
DATABASE_URL: 'mysql://manager:passwd123!@db/passmanager'
|
|
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
|