test docker

This commit is contained in:
Zikil 2024-10-31 22:22:38 +07:00
parent 90d9961592
commit c6d76a229e
2 changed files with 16 additions and 16 deletions

View File

@ -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:

View File

@ -36,7 +36,7 @@
server {
listen 80;
server_name localhost;
server_name anthillsib.ru www.anthillsib.ru;
location / {
proxy_pass http://app:3000;