diff --git a/docker-compose.yml b/docker-compose.yml index 5b29fe1..164dd63 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,14 +2,14 @@ name: ${STACK_NAME:-clupilot} services: nginx: - image: nginx:1.27-alpine + build: ./docker/nginx + image: ${STACK_NAME:-clupilot}/nginx:latest container_name: ${STACK_NAME:-clupilot}-nginx restart: unless-stopped ports: - "${HTTP_PORT:-80}:80" volumes: - ./app:/var/www/html - - ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro extra_hosts: - "host.docker.internal:host-gateway" depends_on: diff --git a/docker/nginx/Dockerfile b/docker/nginx/Dockerfile new file mode 100644 index 0000000..7ab8af1 --- /dev/null +++ b/docker/nginx/Dockerfile @@ -0,0 +1,2 @@ +FROM nginx:1.27-alpine +COPY default.conf /etc/nginx/conf.d/default.conf