-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml
47 lines (38 loc) · 2.13 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
## Run this with "docker-compose up" command from the repository directory
# docker-compose file reference: https://docs.docker.com/compose/compose-file/compose-file-v3/
version: '3.2'
volumes:
config: # can be used for logs as well
services:
rdircd:
build:
context: .
dockerfile: Dockerfile
# UID/GID for rdircd can be set here, and will be in host's namespace
# (i.e. exactly this in "ps" outside container), unless docker userns
# options are used/enabled in the daemon. See Dockerfile for defaults.
#args: [ALPINE_TAG=latest, UID=12345, GID=12345]
image: rdircd
# Change this to "ports: [6667:6667]" to make rdircd accessible on all interfaces.
# Default is to only bind to localhost to avoid making it acessible unintentially.
# rdircd listening on 0.0.0.0 inside container is hardcoded in Dockerfile entrypoint.
ports: [127.0.0.1:6667:6667]
volumes:
# See README.docker-permissions.md doc for a common "Permission denied" with those.
# This will auto-create and mount volume dir from /var/lib/docker/volumes
# You'd need to create/edit config.ini file there, which --conf-init passed
# via "command:" below will create with defaults (if it's not there already).
- config:/config
# Alternative - pass through any local dir, e.g. "conf" dir next to this file.
# If you use line below, then:
# (A) Use it instead of "config:/config" volume above, not both at the same time.
# (B) Make sure to mkdir and chown this local "conf" dir accordingly,
# for example (as a local user): sudo install -m770 -u $SUDO_UID -g55373 -d conf
# uid/gid access will be different from Dockerfile if docker userns remapping is enabled.
#- ./conf:/config
# This option will create config.ini file on first run and exit with info-message.
# For rdircd to start with existing config file(s), following line should be removed.
command: [--conf-init]
# "command" can be used to pass any extra options to the script.
# For example, to use a separate writable state.ini file on /config volume.
#command: [-c, state.ini]