From c6d76a229e381762924b23d843a89dd57dee0eec Mon Sep 17 00:00:00 2001 From: Zikil Date: Thu, 31 Oct 2024 22:22:38 +0700 Subject: [PATCH] test docker --- docker-compose.yml | 30 +++++++++++++++--------------- nginx.conf | 2 +- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 91a7038..a2c52e2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -27,24 +27,24 @@ services: container_name: nextjs restart: always ports: - - "3000:80" + - "3000:3000" networks: - app-network - # nginx: - # image: nginx:alpine - # container_name: nginx - # ports: - # - "80:80" - # - "443:443" - # volumes: - # - ./nginx/conf.d:/etc/nginx/conf.d - # - ./nginx/ssl:/etc/nginx/ssl - # depends_on: - # - nextjs - # networks: - # - app-network - # restart: always + nginx: + image: nginx:alpine + container_name: nginx + ports: + - "80:80" + - "443:443" + volumes: + - ./nginx/conf.d:/etc/nginx/conf.d + - ./nginx/ssl:/etc/nginx/ssl + depends_on: + - nextjs + networks: + - app-network + restart: always networks: app-network: diff --git a/nginx.conf b/nginx.conf index ba8819a..a9e969d 100644 --- a/nginx.conf +++ b/nginx.conf @@ -36,7 +36,7 @@ server { listen 80; - server_name localhost; + server_name anthillsib.ru www.anthillsib.ru; location / { proxy_pass http://app:3000;