mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-04-19 16:33:36 +03:00
change: remove WireGuard from default Compose config
This commit is contained in:
parent
a71c0aa2b4
commit
c540a63c6f
3 changed files with 18 additions and 32 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -8,3 +8,4 @@ riderModule.iml
|
||||||
/.vs/
|
/.vs/
|
||||||
GuildData/
|
GuildData/
|
||||||
Logs/
|
Logs/
|
||||||
|
compose.yaml
|
||||||
|
|
17
compose.example.yaml
Normal file
17
compose.example.yaml
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
services:
|
||||||
|
octobot:
|
||||||
|
container_name: octobot
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
args:
|
||||||
|
- PUBLISH_OPTIONS
|
||||||
|
environment:
|
||||||
|
- BOT_TOKEN
|
||||||
|
volumes:
|
||||||
|
- guild-data:/Octobot/GuildData
|
||||||
|
- logs:/Octobot/Logs
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
guild-data:
|
||||||
|
logs:
|
32
compose.yaml
32
compose.yaml
|
@ -1,32 +0,0 @@
|
||||||
services:
|
|
||||||
wireguard:
|
|
||||||
container_name: wireguard
|
|
||||||
image: jordanpotter/wireguard
|
|
||||||
cap_add:
|
|
||||||
- NET_ADMIN
|
|
||||||
- SYS_MODULE
|
|
||||||
sysctls:
|
|
||||||
net.ipv4.conf.all.src_valid_mark: 1
|
|
||||||
volumes:
|
|
||||||
- /etc/wireguard/octobot.conf:/etc/wireguard/wg0.conf
|
|
||||||
restart: unless-stopped
|
|
||||||
|
|
||||||
octobot:
|
|
||||||
container_name: octobot
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
args:
|
|
||||||
- PUBLISH_OPTIONS
|
|
||||||
environment:
|
|
||||||
- BOT_TOKEN
|
|
||||||
network_mode: service:wireguard
|
|
||||||
depends_on:
|
|
||||||
- wireguard
|
|
||||||
volumes:
|
|
||||||
- guild-data:/Octobot/GuildData
|
|
||||||
- logs:/Octobot/Logs
|
|
||||||
restart: unless-stopped
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
guild-data:
|
|
||||||
logs:
|
|
Loading…
Add table
Reference in a new issue