version: "3.9"
|
|
|
|
services:
|
|
torrent:
|
|
build:
|
|
context: ./torrent-client
|
|
depends_on:
|
|
- "database"
|
|
env_file:
|
|
- ./torrent-client/.env
|
|
links:
|
|
- "database"
|
|
secrets:
|
|
- mysql_root_password
|
|
|
|
database:
|
|
image: mysql
|
|
command: --default-authentication-plugin=mysql_native_password
|
|
restart: always
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD_FILE: /run/secrets/mysql_root_password
|
|
ports:
|
|
- 33060:3306
|
|
security_opt:
|
|
- seccomp=unconfined
|
|
secrets:
|
|
- mysql_root_password
|
|
volumes:
|
|
- ./database/init:/docker-entrypoint-initdb.d
|
|
- mysql:/var/lib/mysql
|
|
|
|
secrets:
|
|
mysql_root_password:
|
|
file: ./.passwords/mysql_root_password
|
|
|
|
volumes:
|
|
autoplex:
|
|
mysql:
|