react-online/docker-compose.yml

24 lines
540 B
YAML

version: "3.8"
services:
react-lab:
container_name: react-lab
image: luotianyi/serve:latest
restart: unless-stopped
build:
context: .
dockerfile: Dockerfile
networks:
- proxy
volumes:
- "./html:/data"
labels:
- "traefik.enable=true"
- "traefik.http.routers.react-lab.Rule=Host(`react-lab.skyone.host`)"
- "traefik.http.routers.react-lab.service=react-lab"
- "traefik.http.services.react-lab.loadBalancer.server.port=9000"
networks:
proxy:
external: true