test docker
This commit is contained in:
parent
90d9961592
commit
c6d76a229e
@ -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:
|
||||
|
||||
@ -36,7 +36,7 @@
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
server_name anthillsib.ru www.anthillsib.ru;
|
||||
|
||||
location / {
|
||||
proxy_pass http://app:3000;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user