-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
40 lines (36 loc) · 1012 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
40
version: '3.7'
# Services/Containers to orchestrate in this composition
# PHP-FPM & nginx Web Server
services:
# PHP 7.2 FPM Image Container
php-7-2-fpm:
container_name: php-7-2-fpm
tty: true
restart: unless-stopped
image: ${PHP72_FPM_DOCKER_IMAGE}:${PHP72_FPM_DOCKER_IMAGE_TAG}
environment:
- NPM_VERSION=${NPM_VERSION}
working_dir: /var/www
volumes:
- ./public_html:/var/www/public
- ./docker-files/php/72.local.ini:/usr/local/etc/php.ini
networks:
- web-app-network
# Nginx Webserver Image Container
nginx-web-server:
container_name: nginx-web-server
tty: true
restart: unless-stopped
image: nginx:1.19-alpine
ports:
- ${APP_PORT}:80
- ${APP_SSL_PORT}:443
volumes:
- ./public_html:/var/www/public
- ./docker-files/nginx/conf.d:/etc/nginx/conf.d
networks:
- web-app-network
# Custom network for composed containers to communicate on
networks:
web-app-network:
driver: bridge