docker-compose/nginx/docker-compose.yml

22 lines
421 B
YAML
Raw Normal View History

2024-03-20 12:25:56 +02:00
version: '3.9'
services:
web:
container_name: nginx-server
image: nginx:latest
ports:
- '80:80'
- '443:443'
volumes:
- ./src:/var/www/html
- ./src/minecraft/mods:/home/thord/minecraft/mods
- ./default.conf:/etc/nginx/conf.d/default.conf
links:
- php-fpm
php-fpm:
container_name: nginx-php-fpm
image: php:8-fpm
volumes:
- ./src:/var/www/html