-
Notifications
You must be signed in to change notification settings - Fork 2
/
compose.yaml
39 lines (39 loc) · 1.02 KB
/
compose.yaml
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
services:
# Runs the FiveM server w/ resources on local disk mounted as a volume.
fivem:
image: tsrp-fivem:latest
build: .
stdin_open: true
tty: true
ports:
- "30120:30120/tcp"
- "30120:30120/udp"
- "40125:40125"
volumes:
- type: bind
source: ./src
target: /fivem/server-data/resources/[local]
- type: bind
source: ./data/txData
target: /fivem/fxserver/txData
- type: bind
source: ./cfg
target: /fivem/server-data/config
- type: bind
source: ./vendor
target: /fivem/server-data/resources/[vendor]
# This config is NOT suitable for running in production
database:
image: mariadb:10.8
ports:
- "3306"
environment:
MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: true
MARIADB_ROOT_HOST: localhost
MARIADB_DATABASE: tsrp_fivem_development
MARIADB_USER: tsrp
MARIADB_PASSWORD: tsrpdev
volumes:
- type: bind
source: ./data/gamedb
target: /var/lib/mysql