This repository was archived by the owner on May 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
69 lines (65 loc) · 1.5 KB
/
docker-compose.yml
File metadata and controls
69 lines (65 loc) · 1.5 KB
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
63
64
65
66
67
68
69
version: "3.7"
services:
app:
build:
context: ./docker
dockerfile: Dockerfile
restart: on-failure
command: /home/application/start.sh
ports:
- "8000:80" # apache
- "3000:3000" # browsersync
- "3001:3001" # browsersync ui
- "5858:5858" # npm debug
- "7000:7000" # npm debug
links:
- db
- smtp
networks:
default:
ipv4_address: 173.20.0.2
volumes:
- ./:/app
environment:
PHP_IDE_CONFIG: "serverName=simplehome"
XDEBUG_SESSION: "PHPSTORM"
XDEBUG_CONFIG: "client_host=173.20.0.1 idekey=PHPSTORM"
PHP_MAX_EXECUTION_TIME: 3600
#XDEBUG_MODE: "profile"
#XDEBUG_OUTPUT_DIR: "/app/storage/xdebug-profiles"
#XDEBUG_PROFILER_ENABLE: "true"
#XDEBUG_PROFILER_ENABLE_TRIGGER_VALUE: "PHPSTORM"
extra_hosts:
- "dockerhost:173.20.0.1"
db:
image: mysql
restart: on-failure
environment:
MYSQL_ROOT_PASSWORD: simplehome
MYSQL_DATABASE: simplehome
MYSQL_USER: simplehome
MYSQL_PASSWORD: simplehome
ports:
- "3308:3306"
networks:
default:
ipv4_address: 173.20.0.3
volumes:
- simpleHomeData:/var/lib/mysql
smtp:
image: mailhog/mailhog:latest
ports:
- "1025:1025"
- "8025:8025"
networks:
default:
ipv4_address: 173.20.0.4
networks:
default:
name: simple_home_network
ipam:
driver: default
config:
- subnet: 173.20.0.0/16
volumes:
simpleHomeData: