-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
59 lines (56 loc) · 1.13 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
version: "2.1"
services:
# Database
database:
container_name: database
extends:
file: database.yml
service: mysql
# service: pgsql
networks:
default:
ipv4_address: 172.36.0.2
environment:
TZ: "America/Sao_Paulo"
# Webserver
webserver:
container_name: webserver
extends:
file: webserver.yml
service: nginx
# service: apache
networks:
default:
ipv4_address: 172.36.0.3
environment:
TZ: "America/Sao_Paulo"
links:
- php
# PHP 7.1
php:
container_name: php
build:
context: ./configs/docker/images/php
dockerfile: ./Dockerfile
volumes:
- ./sites:/var/www/html
- ./uploads:/var/www/uploads
- ./volumes/php/logs:/var/log
- ./configs/php/fpm.conf:/usr/local/etc/php-fpm.d/www.conf
networks:
default:
ipv4_address: 172.36.0.4
environment:
TZ: "America/Sao_Paulo"
links:
- database
extends:
file: virtualhosts.yml
service: php
# Networks
networks:
default:
ipam:
driver: default
config:
- subnet: 172.36.0.0/24