forked from MightyDetail/docker-fivem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (49 loc) · 1.36 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
48
49
---
version: '2'
services:
# -------------------------------------------------------------------
fivem:
image: henkallsn/fivem_esx_bundle
stdin_open: true
tty: true
volumes:
# Remember to change.
- "/path/to/resources/folder:/config"
# Remember to change.
- "/path/to/txAdmin/config:/txData"
# Remember to change.
- "/path/to/mysql/data:/var/lib/mysql"
ports:
- "30120:30120"
- "30120:30120/udp"
- "40120:40120"
environment:
SERVER_PROFILE: "default"
FIVEM_PORT: 30120
TXADMIN_PORT: 40120
HOST_UID: 1000
HOST_GID: 100
# Remember to change.
FIVEM_HOSTNAME: hostname-to-fivem-server
# Remember to change.
FIVEM_LICENCE_KEY: license-key-here
# Remember to change.
STEAM_WEBAPIKEY: api-key-here
# Database stuff ---------------
DATABASE_SERVICE_NAME: fivem
MYSQL_DATABASE: FiveMESX
MYSQL_USER: username
MYSQL_PASSWORD: password
MYSQL_RANDOM_ROOT_PASSWORD: 1
# Change to your timezone
TZ: Europe/Copenhagen
# -------------------------------------------------------------------
phpmyadmin:
image: phpmyadmin/phpmyadmin:latest
ports:
- 8100-8105:80
environment:
- PMA_HOST=fivem
depends_on:
- fivem
# -------------------------------------------------------------------