2021-10-19 09:35:19 +02:00
|
|
|
# The specification version of Docker-compose
|
2021-10-10 21:44:53 +02:00
|
|
|
version: "3.9"
|
|
|
|
# The collection of applications composing this service
|
|
|
|
services:
|
|
|
|
# The NGINX custom container
|
|
|
|
web:
|
|
|
|
# Instead of referencing image: nginx:mainline-alpine here, use build to
|
|
|
|
# reference the current directory (.), which will look for a dockerfile
|
|
|
|
# by default
|
|
|
|
build: .
|
|
|
|
# The external directory location to map to an internal location
|
|
|
|
volumes:
|
|
|
|
- /home/gianm/Project/myCv/build:/usr/share/nginx/html
|
|
|
|
# The external port mapping to internal port mapping
|
|
|
|
ports:
|
|
|
|
- "80:80"
|
|
|
|
php:
|
|
|
|
image: php:fpm-alpine
|
|
|
|
ports:
|
|
|
|
- "9000:9000"
|
|
|
|
# It is important that both containers can reference the same files
|
|
|
|
volumes:
|
|
|
|
- /home/gianm/Project/myCv/build:/usr/share/nginx/html
|