-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (39 loc) · 1.08 KB
/
Copy pathdocker-compose.yml
File metadata and controls
41 lines (39 loc) · 1.08 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
services:
nginx:
build:
context: .
dockerfile: Dockerfile_nginx
container_name: ${PROJECT_NAME_SANITISED}-nginx-service
environment:
ENV: ${ENVIRONMENT:-dev}
volumes:
# - ./build/:/usr/share/nginx/html/web-optimisation-framework:rw
- ./docker-assets/nginx.conf:/etc/nginx/conf.d/default.conf
# API (PHP files)
- ./api/:/usr/share/nginx/html/api:rw
depends_on:
- php-fpm
ports:
- "8080:8080"
php-fpm:
build:
context: .
dockerfile: Dockerfile_php
container_name: ${PROJECT_NAME_SANITISED}-phpfpm-service
environment:
PHP_SENDMAIL_PATH: '"/usr/bin/dos2unix -u | /usr/sbin/ssmtp -t -f"'
SMTP_HOST: "${PROJECT_NAME_SANITISED}_mailhog"
SMTP_PORT: 1025
ENV: ${ENVIRONMENT:-dev}
volumes:
# Same API directory mounted here
- ./api/:/var/www/html/api:rw
expose:
- "9000"
mailhog:
image: mailhog/mailhog:latest
container_name: "${PROJECT_NAME_SANITISED}_mailhog"
ports:
- "1025:1025"
- "8025:8025"
restart: unless-stopped