Browse Source

Add seeker and vpn. Update docker compose files

staging
David Ludwig 4 years ago
parent
commit
1ee229da14
8 changed files with 81 additions and 9 deletions
  1. +2
    -2
      .gitignore
  2. +6
    -0
      .gitmodules
  3. +8
    -2
      docker-compose.dev.yml
  4. +4
    -2
      docker-compose.prod.yml
  5. +58
    -3
      docker-compose.yml
  6. +1
    -0
      generate_secrets.sh
  7. +1
    -0
      seeker
  8. +1
    -0
      vpn

+ 2
- 2
.gitignore View File

@ -1,8 +1,8 @@
# Docker secrets # Docker secrets
.secrets .secrets
# Ignore
.vpn.env
# Volumes
.volumes
# VS Code # VS Code
.vscode .vscode

+ 6
- 0
.gitmodules View File

@ -7,3 +7,9 @@
[submodule "request"] [submodule "request"]
path = request path = request
url = ssh://git@git.dlii.tech:222/Autoplex/request.git url = ssh://git@git.dlii.tech:222/Autoplex/request.git
[submodule "seeker"]
path = seeker
url = ssh://git@git.dlii.tech:222/Autoplex/seeker.git
[submodule "vpn"]
path = vpn
url = ssh://git@git.dlii.tech:222/Autoplex/vpn.git

+ 8
- 2
docker-compose.dev.yml View File

@ -11,6 +11,14 @@ services:
entrypoint: "/bin/sh" entrypoint: "/bin/sh"
tty: true tty: true
seeker:
build:
target: base
volumes:
- ./seeker:/app
entrypoint: "/bin/sh"
tty: true
torrent_webui: torrent_webui:
build: build:
target: base target: base
@ -24,8 +32,6 @@ services:
torrent_client: torrent_client:
build: build:
target: base target: base
ports:
- 9229:9229
volumes: volumes:
- ./torrent-client:/app - ./torrent-client:/app
# ulimits: # ulimits:


+ 4
- 2
docker-compose.prod.yml View File

@ -7,7 +7,8 @@ services:
environment: environment:
NODE_ENV: production NODE_ENV: production
# torrent_webui:
torrent_webui:
restart: unless-stopped
# build: # build:
# target: base # target: base
# ports: # ports:
@ -17,7 +18,8 @@ services:
# entrypoint: "/bin/sh" # entrypoint: "/bin/sh"
# tty: true # tty: true
# torrent_client:
torrent_client:
restart: unless-stopped
# build: # build:
# target: base # target: base
# ports: # ports:


+ 58
- 3
docker-compose.yml View File

@ -14,6 +14,7 @@ services:
- "torrent_client" - "torrent_client"
ports: ports:
- 3200:3200 - 3200:3200
restart: unless-stopped
secrets: secrets:
- app_key - app_key
- discord_bot_key - discord_bot_key
@ -24,6 +25,23 @@ services:
volumes: volumes:
- tmp:/tmp - 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: torrent_webui:
build: build:
context: ./torrent-webui context: ./torrent-webui
@ -47,10 +65,17 @@ services:
context: ./torrent-client context: ./torrent-client
depends_on: depends_on:
- "database" - "database"
- "vpn"
env_file: env_file:
- ./torrent-client/.env - ./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: secrets:
- mysql_root_password - mysql_root_password
volumes: volumes:
@ -59,11 +84,11 @@ services:
database: database:
image: mysql image: mysql
command: --default-authentication-plugin=mysql_native_password command: --default-authentication-plugin=mysql_native_password
restart: always
environment: environment:
MYSQL_ROOT_PASSWORD_FILE: /run/secrets/mysql_root_password MYSQL_ROOT_PASSWORD_FILE: /run/secrets/mysql_root_password
ports: ports:
- 33060:3306 - 33060:3306
restart: unless-stopped
security_opt: security_opt:
- seccomp=unconfined - seccomp=unconfined
secrets: secrets:
@ -72,6 +97,34 @@ services:
- ./database/init:/docker-entrypoint-initdb.d - ./database/init:/docker-entrypoint-initdb.d
- mysql:/var/lib/mysql - 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: secrets:
app_key: app_key:
file: ./.secrets/app_key file: ./.secrets/app_key
@ -85,6 +138,8 @@ secrets:
file: ./.secrets/tvdb_key file: ./.secrets/tvdb_key
tvdb_pin: tvdb_pin:
file: ./.secrets/tvdb_pin file: ./.secrets/tvdb_pin
vpn_auth:
file: ./.secrets/vpn_auth
volumes: volumes:
mysql: mysql:


+ 1
- 0
generate_secrets.sh View File

@ -15,6 +15,7 @@ API_KEYS=(
discord_bot_key discord_bot_key
tvdb_key tvdb_key
tvdb_pin tvdb_pin
vpn_auth
) )
# Store new API keys if available # Store new API keys if available


+ 1
- 0
seeker

@ -0,0 +1 @@
Subproject commit f36dd350fea3303944cf2f0ea095d4f6ced5fe49

+ 1
- 0
vpn

@ -0,0 +1 @@
Subproject commit 4719b210c6991ee3110afa4883829d7db9d4bb65

Loading…
Cancel
Save