-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
40 lines (36 loc) · 1003 Bytes
/
docker-compose.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
39
version: '3.7'
# Services/Containers to orchestrate in this composition
services:
# Basic PHP 7.4 & Apache2 Image Container
php-7-4-web-server:
container_name: php-7-4-web-server
tty: true
restart: unless-stopped
build:
context: .
target: php-7-4-build
dockerfile: php-7-4-apache.Dockerfile
args:
- NPM_VERSION=${NPM_VERSION}
- APP_ENV=${APP_ENV}
labels:
ewc.name: "Web Server"
ewc.description: "PHP & Apache Web Server"
ewc.php.version: "7.4"
image: $BUILD_IMAGE:$BUILD_IMAGE_TAG
environment:
- NPM_VERSION=${NPM_VERSION}
- APP_ENV=${APP_ENV}
working_dir: /var/www
ports:
- ${APP_PORT}:80
- ${APP_SSL_PORT}:443
volumes:
- ./public_html:/var/www/html
- ./docker-files/php/local.ini:/usr/local/etc/php.ini
networks:
- webapp_network
# Custom network for composed containers to communicate on
networks:
webapp_network:
driver: bridge