-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
62 lines (57 loc) · 1.12 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
version: "3.3"
services:
server:
build:
context: ../
dockerfile: docker/server/Dockerfile
ports:
- 7171:7171
- 7172:7172
volumes:
- ../data:/otbr/data
depends_on:
- mysql
- website
- login
links:
- mysql
mysql:
build:
context: ../
dockerfile: docker/mysql/Dockerfile
restart: unless-stopped
environment:
- MYSQL_DATABASE=otserver
- MYSQL_USER=otserver
- MYSQL_PASSWORD=otserver
- MYSQL_RANDOM_ROOT_PASSWORD=yes
ports:
- 3306:3306
volumes:
- db-volume:/var/lib/mysql
website:
image: webdevops/php-nginx:alpine-php7
restart: unless-stopped
environment:
- WEB_DOCUMENT_ROOT=/tmp/web/
- WEB_DOCUMENT_INDEX=index.php
ports:
- 8080:80
volumes:
- ./docker/data/web:/tmp/web
- ./:/tmp/otserver/
depends_on:
- mysql
login:
build:
context: ../
dockerfile: docker/login/Dockerfile
restart: unless-stopped
volumes:
- ./docker/data/:/tmp/
ports:
- 80:8080
depends_on:
- mysql
volumes:
db-volume: