Browse Source

+ example of network aliases for nginx

master
parent
commit
c5e6559db2
  1. 4
      docker-compose.base.yml
  2. 4
      docker-compose.yml.example

4
docker-compose.base.yml

@ -4,10 +4,6 @@ services:
nginx:
image: nginx
restart: always
networks:
default:
aliases:
- loc.10ballov
volumes:
- ${PROJECTS_DIR}:/usr/share/nginx/html
- ./config/nginx/conf.d:/etc/nginx/conf.d

4
docker-compose.yml.example

@ -5,6 +5,10 @@ services:
extends:
file: docker-compose.base.yml
service: nginx
networks:
default:
aliases:
- loc.yoursite.ru
php73:
extends:
file: docker-compose.base.yml

Loading…
Cancel
Save