-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
65 lines (65 loc) · 1.32 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.7'
services:
nginx:
build:
context: ./docker/development/nginx
dockerfile: nginx.docker
volumes:
- ./:/app
- ./var/log/:/var/log/nginx/
links:
- php-fpm
ports:
- "8080:80"
networks:
- internal
php-fpm:
build:
context: ./docker/development/php
dockerfile: php-fpm.docker
volumes:
- ./:/app
links:
- mysql
environment:
PHP_IDE_CONFIG: "serverName=Docker"
networks:
- internal
php-cli:
build:
context: ./docker/development/php
dockerfile: php-cli.docker
volumes:
- ./:/app
- composer:/root/.composer/cache
tty: true
links:
- mysql
environment:
PHP_IDE_CONFIG: "serverName=Docker"
networks:
- internal
mysql:
build:
context: ./docker/development/mysql
dockerfile: mysql.docker
#volumes:
# - dbdata:/var/lib/mysql - uncomment this, if you want to use local db
environment:
MYSQL_DATABASE: book_manager
MYSQL_USER: root
MYSQL_ROOT_PASSWORD: root
ports:
- "3306:3306"
networks:
- internal
volumes:
composer:
#dbdata: - uncomment this, if you want to use local db
networks:
internal:
driver: bridge
ipam:
driver: default
config:
- subnet: 192.168.220.0/28