-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-build.yaml
More file actions
47 lines (42 loc) · 1.31 KB
/
docker-compose-build.yaml
File metadata and controls
47 lines (42 loc) · 1.31 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
# Set a project name for the composition to use
name: $COMPOSE_PROJECT_NAME
# Services/Containers to orchestrate in this composition
services:
# Basic PHP 5.6 & Apache2 Image Container
php-5-6-apache:
container_name: ${APACHE_PHP56_DOCKER_BOX}
tty: true
restart: unless-stopped
build:
context: .
dockerfile: ${DOCKER_BUILD_FILE}
target: ${DOCKER_BUILD_TARGET}
args:
- APP_ENV=${APP_ENV}
- NPM_VERSION=${NPM_VERSION}
labels:
evilwizardcreations.image.description: "${DOCKER_BUILD_DESC}"
evilwizardcreations.image.version: ${DOCKER_BUILD_VERSION}
evilwizardcreations.image.target-env: ${APP_ENV}
evilwizardcreations.image.target-env.version: "local"
image: ${APACHE_PHP56_DOCKER_IMAGE}:${APACHE_PHP56_DOCKER_IMAGE_TAG}
environment:
- APP_ENV=${APP_ENV}
- NPM_VERSION=${NPM_VERSION}
working_dir: /var/www
ports:
- ${APP_PORT}:80
- ${APP_SSL_PORT}:443
volumes:
- ./public_html:/var/www/html
# - ./docker-files/php/56.local.ini:/usr/local/etc/php.ini
- httpd-logs:/var/log/apache2
networks:
- web-app-network
# Named volume mounts
volumes:
httpd-logs:
# Custom network for composed containers to communicate on
networks:
web-app-network:
driver: bridge