-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
37 lines (35 loc) · 901 Bytes
/
docker-compose.yaml
File metadata and controls
37 lines (35 loc) · 901 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
services:
nextjs-portfolio:
build:
context: .
dockerfile: Dockerfile
container_name: portfolio-container
ports:
- "3000:3000"
environment:
- NODE_ENV=production
# Add other environment variables here if needed
# - NEXT_PUBLIC_API_URL=https://api.example.com
volumes:
- ./public:/app/public:ro
# Uncomment if you need hot-reload in development:
# - .:/app
# - /app/node_modules
restart: unless-stopped
networks:
- portfolio-network
# Uncomment if you need a reverse proxy like Nginx
# nginx:
# image: nginx:alpine
# ports:
# - "80:80"
# volumes:
# - ./nginx.conf:/etc/nginx/conf.d/default.conf
# - ./public:/usr/share/nginx/html:ro
# depends_on:
# - nextjs-portfolio
# networks:
# - portfolio-network
networks:
portfolio-network:
driver: bridge