test docker
This commit is contained in:
parent
90d9961592
commit
c6d76a229e
@ -27,24 +27,24 @@ services:
|
|||||||
container_name: nextjs
|
container_name: nextjs
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- "3000:80"
|
- "3000:3000"
|
||||||
networks:
|
networks:
|
||||||
- app-network
|
- app-network
|
||||||
|
|
||||||
# nginx:
|
nginx:
|
||||||
# image: nginx:alpine
|
image: nginx:alpine
|
||||||
# container_name: nginx
|
container_name: nginx
|
||||||
# ports:
|
ports:
|
||||||
# - "80:80"
|
- "80:80"
|
||||||
# - "443:443"
|
- "443:443"
|
||||||
# volumes:
|
volumes:
|
||||||
# - ./nginx/conf.d:/etc/nginx/conf.d
|
- ./nginx/conf.d:/etc/nginx/conf.d
|
||||||
# - ./nginx/ssl:/etc/nginx/ssl
|
- ./nginx/ssl:/etc/nginx/ssl
|
||||||
# depends_on:
|
depends_on:
|
||||||
# - nextjs
|
- nextjs
|
||||||
# networks:
|
networks:
|
||||||
# - app-network
|
- app-network
|
||||||
# restart: always
|
restart: always
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
app-network:
|
app-network:
|
||||||
|
|||||||
@ -36,7 +36,7 @@
|
|||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name localhost;
|
server_name anthillsib.ru www.anthillsib.ru;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://app:3000;
|
proxy_pass http://app:3000;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user