-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-build.yaml
39 lines (34 loc) · 1.1 KB
/
docker-compose-build.yaml
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
version: '3.7'
# 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 CLI Image Container
php-5-6-cli:
container_name: ${PHP56_CLI_DOCKER_BOX}
tty: true
restart: unless-stopped
build:
context: .
dockerfile: ${DOCKER_BUILD_FILE}
target: ${DOCKER_BUILD_TARGET}
args:
- APP_ENV=${APP_ENV}
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: ${PHP56_CLI_DOCKER_BUILD_IMAGE}:${PHP56_CLI_DOCKER_BUILD_IMAGE_TAG}
environment:
- APP_ENV=${APP_ENV}
working_dir: /var/www
volumes:
- ./public_html:/var/www/html
- ./docker-files/php/56.local.ini:/usr/local/etc/php.ini
networks:
- web-app-network
# Custom network for composed containers to communicate on
networks:
web-app-network:
driver: bridge