some fixes to get services working correctly

This commit is contained in:
root 2024-11-07 19:04:48 -05:00
parent 88b1a6b904
commit aacaf2e743
4 changed files with 5 additions and 15 deletions

View File

@ -53,4 +53,4 @@ VOLUME /var/log/anope
USER anope
ENTRYPOINT ["/usr/local/bin/anope", "--nofork", "--config=/etc/anope/anope.conf", "--dbdir=/var/lib/anope", "--logdir=/var/log/anope", "--moduledir=/usr/local/modules"]
ENTRYPOINT ["/usr/local/bin/anope", "--nofork", "--confdir=/etc/anope/", "--dbdir=/etc/anope/custom/", "--logdir=/var/log/anope/", "--moduledir=/usr/local/modules/"]

View File

@ -1,7 +1,7 @@
include
{
type = "file"
name = "/etc/anope/include.conf"
name = "include.conf"
}
module { name = "inspircd" }

9
custom/.gitignore vendored
View File

@ -1,8 +1 @@
motd.txt
oper.motd.txt
include.conf
*.crt
*.key
*.pem
!ca.crt
!crl.pem
*

View File

@ -1,6 +1,6 @@
services:
anope:
restart: on-failure:3
restart: always
build:
context: .
args:
@ -9,12 +9,9 @@ services:
network_mode: "host"
env_file: "config.env"
volumes:
- ./custom:/etc/anope/custom:ro
- data:/var/lib/anope
- ./custom:/etc/anope/custom:rw
- ./include.conf:/etc/anope/include.conf:ro
- log:/var/log/anope
volumes:
data:
name: anope_data
log:
name: anope_log