You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

91 lines
1.7 KiB

version: "3.9"
services:
request:
build:
context: ./request
depends_on:
- "database"
- "torrent_client"
env_file:
- ./request/.env
links:
- "database"
- "torrent_client"
ports:
- 3200:3200
secrets:
- app_key
- discord_bot_key
- mysql_root_password
- tmdb_key
- tvdb_key
- tvdb_pin
volumes:
- tmp:/tmp
torrent_webui:
build:
context: ./torrent-webui
depends_on:
- "database"
- "torrent_client"
env_file:
- ./torrent-webui/.env
links:
- "database"
- "torrent_client"
ports:
- 3300:3300
secrets:
- mysql_root_password
volumes:
- tmp:/tmp
torrent_client:
build:
context: ./torrent-client
depends_on:
- "database"
env_file:
- ./torrent-client/.env
links:
- "database"
secrets:
- mysql_root_password
volumes:
- tmp:/tmp
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:
app_key:
file: ./.secrets/app_key
discord_bot_key:
file: ./.secrets/discord_bot_key
mysql_root_password:
file: ./.secrets/mysql_root_password
tmdb_key:
file: ./.secrets/tmdb_key
tvdb_key:
file: ./.secrets/tvdb_key
tvdb_pin:
file: ./.secrets/tvdb_pin
volumes:
mysql:
tmp: