35 lines
753 B
YAML
35 lines
753 B
YAML
networks:
|
|
default:
|
|
|
|
services:
|
|
traefik:
|
|
container_name: neah-traefik
|
|
image: traefik:latest
|
|
command:
|
|
- "--api.insecure=true"
|
|
- "--providers.docker=true"
|
|
- "--entrypoints.web.address=:80"
|
|
ports:
|
|
- "80:80"
|
|
- "8080:8080"
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
networks:
|
|
- default
|
|
|
|
front:
|
|
container_name: neah-front
|
|
build:
|
|
context: ./front
|
|
dockerfile: Dockerfile
|
|
environment:
|
|
- NODE_ENV=production
|
|
volumes:
|
|
- ./front:/app
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.neah-front.rule=Host(`neah.local`)"
|
|
- "traefik.http.services.neah-front.loadbalancer.server.port=3000"
|
|
networks:
|
|
- default
|