-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
26 lines (25 loc) · 953 Bytes
/
docker-compose.yml
File metadata and controls
26 lines (25 loc) · 953 Bytes
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
version: "3"
services:
# This is the www service that we are exposing using nginx
webapp:
image: "nginx:latest" # official image
volumes:
# We mount our own configuration for nginx
- ./config/nginx:/etc/nginx/conf.d
# We mount the actual application
- ./public:/usr/share/nginx/html
# We mount logging so we can local access to the logs
# Sometimes this is not needed because you can mount a kibana and elasticsearch image
- ./var/log:/var/log/nginx
ports:
# The local port 50080 is mapped to port 80 on the machine
- "50080:80"
# nginx will send all php requests to the PHP FPM server
php-fpm:
image: akeneo/fpm # good image of php-fpm with many extensions and well maintained
user: docker
volumes:
- ./:/srv/application # mounting our application on a specific path
ports:
# The local port 59001 will be mapped to the port 9001
- "59001:9001"