forked from ninghao/nest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (49 loc) · 909 Bytes
/
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:
console:
build:
context: ./services/console
dockerfile: Dockerfile
volumes_from:
- php
tty: true
web:
image: nginx:1.11.1
ports:
- "8080:80"
depends_on:
- php
volumes_from:
- php
volumes:
- ./services/nginx/config:/etc/nginx/conf.d
php:
build:
context: ./services/php
dockerfile: Dockerfile
volumes:
- ./app:/mnt/app
db:
image: mariadb:10.1
environment:
MYSQL_ROOT_PASSWORD: "root"
MYSQL_DATABASE: "app"
MYSQL_USER: "app"
MYSQL_PASSWORD: "123123"
volumes:
- db:/var/lib/mysql
redis:
image: redis:3.2.1
ports:
- "6379:6379"
phpmyadmin:
image: phpmyadmin/phpmyadmin
ports:
- "8081:80"
environment:
PMA_HOST: "db"
PMA_USER: "root"
PMA_PASSWORD: "root"
volumes:
db:
driver: local