-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
41 lines (35 loc) · 1.09 KB
/
docker-compose.prod.yml
File metadata and controls
41 lines (35 loc) · 1.09 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
###############################################
# An override compose file for using volume #
# mounts for either production or cloud tests #
###############################################
version: "3.7"
services:
### Override PHP service for production
qa-demo:
volumes:
- qa-demo-data:$SITE_INSTALLATION_CONTAINER
- dxpr-builder:$DXPR_BUILDER_CONTAINER
- dxpr-theme:$DXPR_THEME_CONTAINER
### Override nginx service for production
nginx:
volumes:
- qa-demo-data:$SITE_INSTALLATION_CONTAINER
- dxpr-builder:$DXPR_BUILDER_CONTAINER
- dxpr-theme:$DXPR_THEME_CONTAINER
### Populate the dxpr-builder volume
dxpr-builder:
image: dxpr/dxpr_builder:$DXPR_BUILDER_TAG
profiles: ["dxpr-builder"]
volumes:
- dxpr-builder:$DXPR_BUILDER_CONTAINER
### Build and populate the dxpr-theme volume
dxpr-theme:
image: dxpr/dxpr_theme:$DXPR_THEME_TAG
profiles: ["dxpr-theme"]
build:
context: .
args:
PHP_TAG: $PHP_TAG
DXPR_THEME_CONTAINER: $DXPR_THEME_CONTAINER
volumes:
- dxpr-theme:$DXPR_THEME_CONTAINER