Update docker-compose.yml
This commit is contained in:
@@ -1,14 +1,33 @@
|
|||||||
version: '3.8'
|
version: '3.8'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
traefik:
|
||||||
|
image: traefik:v2.7
|
||||||
|
container_name: traefik
|
||||||
|
command:
|
||||||
|
- "--api.insecure=true"
|
||||||
|
- "--entrypoints.web.address=:80"
|
||||||
|
- "--entrypoints.websecure.address=:443"
|
||||||
|
- "--providers.docker=true"
|
||||||
|
ports:
|
||||||
|
- "80:80"
|
||||||
|
- "443:443"
|
||||||
|
- "8080:8080" # Traefik dashboard
|
||||||
|
volumes:
|
||||||
|
- "/var/run/docker.sock:/var/run/docker.sock"
|
||||||
|
|
||||||
nextjs-app:
|
nextjs-app:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: . # Path to your project
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
container_name: nextjs-app-container
|
container_name: nextjs-app-container
|
||||||
ports:
|
expose:
|
||||||
- "3000:3000"
|
- "3000" # Expose port 3000 internally
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.http.routers.dashboard.rule=Host(`dash.embermarket.app`)"
|
||||||
|
- "traefik.http.services.dashboard.loadbalancer.server.port=3000"
|
||||||
environment:
|
environment:
|
||||||
- NODE_ENV=production
|
- NODE_ENV=production
|
||||||
- NEXT_PUBLIC_API_URL=https://internal-api.inboxi.ng/api
|
- NEXT_PUBLIC_API_URL=https://internal-api.inboxi.ng/api
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|||||||
Reference in New Issue
Block a user