-
-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (34 loc) · 959 Bytes
/
docker-compose.yml
File metadata and controls
36 lines (34 loc) · 959 Bytes
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
# Development Docker Compose Configuration
# Supports hot-reloading with mounted volumes
services:
app:
build:
context: .
target: app-dev
args:
# To authenticate to private registry either use username / password, or Oauth key/secret / etc
# Please add Composer Auth JSON Object
COMPOSER_AUTH: "{}"
APP_BASE_DIR: ${APP_BASE_DIR-.}
OS_PACKAGE_UPGRADE_TRIGGER: ${OS_PACKAGE_UPGRADE_TRIGGER-1}
restart: unless-stopped
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- ${APP_BASE_DIR-.}:/app
web:
build:
context: .
target: web-dev
args:
APP_BASE_DIR: ${APP_BASE_DIR-.}
restart: unless-stopped
ports:
- 8080:8080
environment:
# The Hostname for the FPM (needs to match the hostname for the `app`)
PHP_FPM_HOST: app
volumes:
- ${APP_BASE_DIR-.}/public:/app/public
depends_on:
- app