-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
62 lines (58 loc) · 1.26 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"
services:
# MySQL 5.7.x
db:
restart: always
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: rootpass
MYSQL_DATABASE: homestead
MYSQL_USER: homestead
MYSQL_PASSWORD: secret
TERM: linux
volumes:
- ./data/database:/var/lib/mysql
- ./data/logs/mysql:/var/log/mysql
networks:
- internal
dns:
- 8.8.8.8
- 8.8.4.4
# PHP-FPM 7.0.x
php7:
restart: always
build: ./services/php7.0-fpm
image: rikkeisoft/docker-for-php:latest
environment:
TERM: linux
volumes:
- ./services/php7.0-fpm/php.ini:/etc/php.ini:ro
- ./services/php7.0-fpm/php-fpm.conf:/usr/local/etc/php-fpm.conf:ro
- ./data/logs/php:/var/log/php-fpm
- ./app:/app
networks:
- external
- internal
dns:
- 8.8.8.8
- 8.8.4.4
# Nginx 1.10.x
web:
restart: always
image: nginx:stable-alpine
ports:
- "8080:80"
volumes:
- ./services/nginx/site.conf:/etc/nginx/conf.d/site.conf:ro
- ./data/logs/nginx:/var/log/nginx
- ./app:/app
networks:
- external
dns:
- 8.8.8.8
- 8.8.4.4
networks:
external:
driver: bridge
internal:
driver: bridge