forked from SerjPopov/cloud-mail-ru-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
41 lines (38 loc) · 899 Bytes
/
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
version: '3'
services:
#Nginx Service
webserver:
image: nginx
container_name: "cloud-mail-ru-server"
depends_on:
- app
ports:
- "8065:80"
volumes:
- ./:/var/www
- ./docker/nginx/local.conf:/etc/nginx/conf.d/default.conf
networks:
- cloud-mail-ru-network
#PHP Service
app:
build:
context: .
dockerfile: ./docker/php-fpm/Dockerfile
container_name: "cloud-mail-ru-app"
environment:
#XDEBUG_CONFIG: "remote_host=192.168.4.1 remote_enable=1"
XDEBUG_CONFIG: "remote_host=host.docker.internal remote_enable=1"
PHP_IDE_CONFIG: "serverName=Docker"
working_dir: /var/www
volumes:
- ./:/var/www
networks:
- cloud-mail-ru-network
#Docker Networks
networks:
cloud-mail-ru-network:
driver: bridge
ipam:
driver: default
config:
- subnet: 192.168.4.0/28