-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (39 loc) · 850 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (39 loc) · 850 Bytes
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
services:
server:
image: spritsail/fivem:17000
container_name: "${COMPOSE_PROJECT_NAME}-server"
restart: unless-stopped
stdin_open: true
tty: true
ports:
- "30120:30120"
- "30120:30120/udp"
- "40120:40120"
volumes:
- ./txData:/txData
environment:
- NO_DEFAULT_CONFIG=true
depends_on:
- db
networks:
- fivem-net
cpus: 4.0
mem_limit: 8g
mem_reservation: 2g
db:
image: mariadb:10.11
container_name: "${COMPOSE_PROJECT_NAME}-db"
restart: unless-stopped
environment:
MYSQL_DATABASE: "${COMPOSE_PROJECT_NAME}"
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
MYSQL_ROOT_PASSWORD: ""
volumes:
- ./db-data:/var/lib/mysql
ports:
- "3306:3306"
networks:
- fivem-net
networks:
fivem-net:
driver: bridge