-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
39 lines (37 loc) · 1.09 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
# Generated on docker.io #
version: "3.1"
services:
mysql:
image: mysql:5.7
container_name: cloudbeds-mysql
volumes:
- ./mysql-storage:/var/lib/mysql
- ./mysql-init:/docker-entrypoint-initdb.d
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=cloudbeds
- MYSQL_PASSWORD=root
ports:
- "33306:3306"
webserver:
build: docker/nginx
container_name: cloudbeds-webserver
working_dir: /app
volumes:
- .:/app
ports:
- "8080:80"
depends_on:
- php-fpm
php-fpm:
build: docker/php-fpm
container_name: cloudbeds-php-fpm
working_dir: /app
depends_on:
- mysql
volumes:
- .:/app
- ./docker/php-fpm/php-ini-overrides.ini:/etc/php/7.3/fpm/conf.d/99-overrides.ini
environment:
XDEBUG_CONFIG: "remote_host=${DOCKER_HOST_IP}"
PHP_IDE_CONFIG: "serverName=Cloudbeds"