forked from otland/forgottenserver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
65 lines (59 loc) · 1.24 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
55
56
57
58
59
60
61
62
63
64
65
version: "3.0"
services:
server:
build:
context: .
restart: always
ports:
- "7171:7171"
- "7172:7172"
depends_on:
- db
networks:
- db-network
volumes:
- tfs:/srv
db:
image: mariadb
restart: always
environment:
MYSQL_ROOT_PASSWORD: admin
MYSQL_USER: forgottenserver
MYSQL_PASSWORD: admin
# Automatically creates a database
MYSQL_DATABASE: forgottenserver
volumes:
# Saves all the data in ./db directory
- ./db:/var/lib/mysql
# Automatically executes schema.sql on startup
- ./schema.sql:/docker-entrypoint-initdb.d/schema.sql
networks:
- db-network
db-adminer:
image: adminer
restart: always
ports:
- 8080:8080
networks:
- db-network
website:
image: webdevops/php-nginx:7.4-alpine
container_name: "myaac-website"
restart: unless-stopped
environment:
- WEB_DOCUMENT_ROOT=/tmp/web/
- WEB_DOCUMENT_INDEX=index.php
ports:
- "80:80"
depends_on:
- db
volumes:
- ./nginx/www:/tmp/web
- ./data:/tmp/server/data
- ./config.lua.dist:/tmp/server/config.lua
networks:
- db-network
networks:
db-network:
volumes:
tfs: