|
|
@ -14,6 +14,7 @@ services: |
|
|
|
- "torrent_client" |
|
|
|
ports: |
|
|
|
- 3200:3200 |
|
|
|
restart: unless-stopped |
|
|
|
secrets: |
|
|
|
- app_key |
|
|
|
- discord_bot_key |
|
|
@ -24,6 +25,23 @@ services: |
|
|
|
volumes: |
|
|
|
- tmp:/tmp |
|
|
|
|
|
|
|
seeker: |
|
|
|
build: |
|
|
|
context: ./seeker |
|
|
|
depends_on: |
|
|
|
- "database" |
|
|
|
- "torrent_client" |
|
|
|
env_file: |
|
|
|
- ./seeker/.env |
|
|
|
links: |
|
|
|
- "database" |
|
|
|
- "torrent_client" |
|
|
|
restart: unless-stopped |
|
|
|
secrets: |
|
|
|
- mysql_root_password |
|
|
|
volumes: |
|
|
|
- tmp:/tmp |
|
|
|
|
|
|
|
torrent_webui: |
|
|
|
build: |
|
|
|
context: ./torrent-webui |
|
|
@ -47,10 +65,17 @@ services: |
|
|
|
context: ./torrent-client |
|
|
|
depends_on: |
|
|
|
- "database" |
|
|
|
- "vpn" |
|
|
|
env_file: |
|
|
|
- ./torrent-client/.env |
|
|
|
links: |
|
|
|
- "database" |
|
|
|
healthcheck: |
|
|
|
test: ["CMD", "ping", "-q", "-c1", "google.com"] |
|
|
|
interval: 5m |
|
|
|
timeout: 10s |
|
|
|
retries: 3 |
|
|
|
start_period: 5m |
|
|
|
network_mode: service:vpn |
|
|
|
restart: unless-stopped |
|
|
|
secrets: |
|
|
|
- mysql_root_password |
|
|
|
volumes: |
|
|
@ -59,11 +84,11 @@ services: |
|
|
|
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 |
|
|
|
restart: unless-stopped |
|
|
|
security_opt: |
|
|
|
- seccomp=unconfined |
|
|
|
secrets: |
|
|
@ -72,6 +97,34 @@ services: |
|
|
|
- ./database/init:/docker-entrypoint-initdb.d |
|
|
|
- mysql:/var/lib/mysql |
|
|
|
|
|
|
|
vpn: |
|
|
|
build: |
|
|
|
context: ./vpn |
|
|
|
cap_add: |
|
|
|
- net_admin |
|
|
|
command: |
|
|
|
- '-f ""' |
|
|
|
environment: |
|
|
|
TZ: "CST6CDT" |
|
|
|
links: |
|
|
|
- "database" |
|
|
|
networks: |
|
|
|
- default |
|
|
|
read_only: true |
|
|
|
tmpfs: |
|
|
|
- /run |
|
|
|
- /tmp |
|
|
|
restart: unless-stopped |
|
|
|
secrets: |
|
|
|
- vpn_auth |
|
|
|
security_opt: |
|
|
|
- label:disable |
|
|
|
stdin_open: true |
|
|
|
tty: true |
|
|
|
volumes: |
|
|
|
- /dev/net:/dev/net:z |
|
|
|
- ./.volumes/vpn:/vpn |
|
|
|
|
|
|
|
secrets: |
|
|
|
app_key: |
|
|
|
file: ./.secrets/app_key |
|
|
@ -85,6 +138,8 @@ secrets: |
|
|
|
file: ./.secrets/tvdb_key |
|
|
|
tvdb_pin: |
|
|
|
file: ./.secrets/tvdb_pin |
|
|
|
vpn_auth: |
|
|
|
file: ./.secrets/vpn_auth |
|
|
|
|
|
|
|
volumes: |
|
|
|
mysql: |
|
|
|