-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (46 loc) · 1.2 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
version: '2'
services:
httpd:
image: abiosoft/caddy:php
env_file: .env
environment:
- PHP_FPM_ADDR=172.16.${IP_RANGE}.12
- PHP_FPM_PORT=9000
ports:
- "127.0.0.1:80:80"
- "127.0.0.1:443:443"
networks:
dev_net:
ipv4_address: 172.16.${IP_RANGE}.11
volumes:
- ./Caddyfile:/etc/Caddyfile
- ./srv:/srv
links:
- "php:php"
php:
image: cytopia/php-fpm-7.0
env_file: .env
environment:
- TIMEZONE=Europe/London
- ENABLE_MAIL=0
ports:
- "127.0.0.1:9000:9000"
networks:
dev_net:
ipv4_address: 172.16.${IP_RANGE}.12
volumes:
- ./Caddyfile:/etc/Caddyfile
- ./srv:/srv
- ./logs/mail:/var/mail
- ./logs/php:/var/log/php-fpm
- ./config:/etc/php-custom.d
networks:
dev_net:
driver: bridge
driver_opts:
com.docker.network.enable_ipv6: "false"
ipam:
driver: default
config:
- subnet: 172.16.${IP_RANGE}.0/25
gateway: 172.16.${IP_RANGE}.1