-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (42 loc) · 1.03 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
version: '2'
services:
web:
build:
context: ./nginx
dockerfile: Dockerfile
ports:
- "8080:80"
volumes:
- ./hansesim:/home/student/htdocs/hansesim
- ./site.conf:/etc/nginx/conf.d/default.conf
- ./logs:/var/log/nginx
networks:
- hansesim
php7:
build:
context: ./php-fpm
dockerfile: Dockerfile
volumes:
- ./hansesim:/home/student/htdocs/hansesim
networks:
- hansesim
ports:
- "9001:9000"
environment:
XDEBUG_CONFIG: "remote_host=192.168.1.51"
#ipconfig getifaddr en0
PHP_IDE_CONFIG: "serverName=Test"
db:
image: mysql
ports:
- 3306:3306
environment:
MYSQL_DATABASE: hansedb
MYSQL_USER: hanseuser
MYSQL_PASSWORD: hansepassword
MYSQL_ROOT_PASSWORD: hansepassword
networks:
- hansesim
networks:
hansesim:
driver: bridge