-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
54 lines (49 loc) · 1.14 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
50
51
52
53
54
version: '3.7'
services:
samp-server:
image: registry.gitlab.com/grgserver/sampracing/samp-server
container_name: samp-server
build:
context: .
dockerfile: Dockerfile
ports:
- 7777:7777/udp
networks:
- network
environment:
MYSQL_HOST: mysql
MYSQL_USER: samp
MYSQL_PASSWORD: samp
MYSQL_DATABASE: samp
RANDOM_RCON_PASSWORD: 'true'
GRG_AUDIO_URL: 'http://localhost:8080/audio'
volumes:
- samp-scriptfiles:/opt/samp/scriptfiles
mysql:
image: mariadb:10.4
container_name: mysql
networks:
- network
environment:
MYSQL_USER: samp
MYSQL_PASSWORD: samp
MYSQL_DATABASE: samp
MYSQL_RANDOM_ROOT_PASSWORD: 'true'
volumes:
- ./database.sql:/docker-entrypoint-initdb.d/samp-db.sql:ro
webserver:
image: registry.gitlab.com/grgserver/sampracing/webserver
container_name: webserver
build:
context: .
dockerfile: map.Dockerfile
ports:
- 8080:80
networks:
- network
volumes:
- samp-scriptfiles:/opt/samp/scriptfiles:ro
networks:
network:
volumes:
samp-scriptfiles: