docker-compose.yml
1001 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
44
45
46
47
48
49
50
51
52
53
version: "2.1"
services:
nginx:
build:
context: ./docker/nginx
args:
- local_host_ip=${LOCAL_HOST_IP}
environment:
- LOCAL_HOST_IP=${LOCAL_HOST_IP}
extra_hosts:
- "dev.docker-host.com:${LOCAL_HOST_IP}"
ports:
- "80:80"
links:
- "php"
volumes:
- ${WS_PATH}:/cyphp
php:
build:
context: ./docker/php
args:
- local_host_ip=${LOCAL_HOST_IP}
environment:
- LOCAL_HOST_IP=${LOCAL_HOST_IP}
extra_hosts:
- "dev.docker-host.com:${LOCAL_HOST_IP}"
ports:
- "8000:8000"
# - "9000:9000"
links:
- "mysql"
# - "redis"
volumes:
- ${WS_PATH}:/cyphp
mysql:
build: ./docker/mysql
environment:
- MYSQL_USER=root
- MYSQL_ALLOW_EMPTY_PASSWORD=true
ports:
- "3306:3306"
volumes:
- ${WS_PATH}/data/mysql:/var/lib/mysql
# redis:
# build: ./redis
# ports:
# - "6379:6379"