| 123456789101112131415161718192021222324252627282930313233343536 |
- services:
- byreal-table:
- build:
- context: .
- dockerfile: Dockerfile
- args:
- SOL_ENDPOINT: ${SOL_ENDPOINT:-}
- container_name: byreal-table
- # 不要再映射 80:3000,改成内部用的 3000 端口(也可以直接去掉 ports,用 expose)
- expose:
- - '3000'
- environment:
- - SOL_ENDPOINT=${SOL_ENDPOINT}
- - SOL_SECRET_KEY=${SOL_SECRET_KEY}
- - NODE_ENV=production
- - NEXT_TELEMETRY_DISABLED=1
- restart: unless-stopped
- networks:
- - byreal-network
- nginx:
- image: nginx:alpine
- container_name: byreal-nginx
- depends_on:
- - byreal-table
- ports:
- - '80:80'
- volumes:
- - ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
- - ./htpasswd:/etc/nginx/.htpasswd:ro
- networks:
- - byreal-network
- networks:
- byreal-network:
- driver: bridge
|