add some stupid solutions

This commit is contained in:
perl 2024-10-03 23:44:15 +03:00
parent 589c3faae0
commit 7e1823dca6
3 changed files with 11 additions and 6 deletions

View File

@ -0,0 +1,6 @@
services:
reverse:
image: nginx:stable-alpine
container_name: reverse
hostname: reverse
restart: always

View File

@ -1,9 +1,8 @@
services: services:
reverse: reverse:
image: nginx:stable-alpine extends:
container_name: reverse file: compose_extends/docker-compose.base.yaml
hostname: reverse service: reverse
restart: always
extra_hosts: extra_hosts:
- "host.docker.internal=host-gateway" - "host.docker.internal=host-gateway"
volumes: volumes:
@ -15,11 +14,11 @@ services:
- "./resources:/var/www/html/resources:ro" - "./resources:/var/www/html/resources:ro"
- "./ssl:/etc/nginx/ssl:ro" - "./ssl:/etc/nginx/ssl:ro"
- "./logs:/var/log/nginx/" - "./logs:/var/log/nginx/"
networks:
services: {}
ports: ports:
- 80:80 - 80:80
- 443:443 - 443:443
networks:
- services
networks: networks:
services: services: