docker add
This commit is contained in:
29
docker-compose.yml
Normal file
29
docker-compose.yml
Normal file
@@ -0,0 +1,29 @@
|
||||
services:
|
||||
nextjs:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
container_name: eclassify_nextjs
|
||||
restart: always
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
networks:
|
||||
- devit_network
|
||||
|
||||
nginx:
|
||||
image: nginx:alpine
|
||||
container_name: eclassify_nginx
|
||||
restart: always
|
||||
ports:
|
||||
- "48680:80"
|
||||
- "48643:443"
|
||||
volumes:
|
||||
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
|
||||
depends_on:
|
||||
- nextjs
|
||||
networks:
|
||||
- devit_network
|
||||
|
||||
networks:
|
||||
devit_network:
|
||||
driver: bridge
|
||||
Reference in New Issue
Block a user