-
-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
32 lines (30 loc) · 886 Bytes
/
docker-compose.prod.yml
File metadata and controls
32 lines (30 loc) · 886 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
# Production Docker Compose Configuration
# Uses immutable images with code baked in
services:
app:
build:
context: .
target: app
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
web:
build:
context: .
target: web
args:
APP_BASE_DIR: ${APP_BASE_DIR-.}
OS_PACKAGE_UPGRADE_TRIGGER: ${OS_PACKAGE_UPGRADE_TRIGGER-1}
restart: unless-stopped
environment:
# The Hostname for the FPM (needs to match the hostname for the `app`)
PHP_FPM_HOST: app
ports:
- 8080:8080
depends_on:
app:
condition: service_healthy