forked from NotQuiteApex/Docker-OpenFortressServer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
32 lines (28 loc) · 1.39 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
version: "4.p"
services:
pfsv:
# This is the image that the container will use to run the server. The string after the colon is
# the tag, which can be either `latest` or `latest-sm`. The first tag is a basic Pre Fortress 2
# server with no extra plugins or maps installed. The second tag installs SourceMod with all the
# necessary components to work with Pre-Fortress 2, used for running plugins like RTV.
image: prefortress2/pfsv:latest-sm
stdin_open: true
tty: true
# These are volumes for accessing specific aspects of your server, such as the config folder,
# the custom folder, and the sourcemod folder. The last volume will not work if you do not have
# sourcemod installed on your server. These volumes are accessible in /var/lib/docker/volumes on
# Linux, and you can edit your files so long as you have root permissions (sudo).
volumes:
- pf_cfg:/root/.steam/pfsv/sdk/pf2/cfg
- pf_custom:/root/.steam/pfsv/sdk/pf2/custom
- pf_addons:/root/.steam/pfsv/sdk/pf2/addons
# These are the ports necessary for server operation. These allow the container to communicate
# with the host computer through these ports. You will still need to forward the ports yourself.
# Do not edit these unless you absolutely know what you're doing.
ports:
- "27015:27015/tcp"
- "27015:27015/udp"
volumes:
pf_cfg:
pf_custom:
pf_addons: