wctdreamlandwebsite-front/docker-compose.yml

35 lines
762 B
YAML
Raw Permalink Normal View History

2023-03-15 15:30:46 +08:00
version: '3.7'
services:
webview:
build:
dockerfile: Dockerfile
context: ./
command: npm run start
privileged: true
cap_add:
- ALL
restart: always
2023-03-15 16:20:47 +08:00
container_name: wctdreamwebsite-front
2023-03-15 15:30:46 +08:00
expose:
- 3000
ports:
2023-03-15 16:20:47 +08:00
- 3004:3000
2023-03-15 15:30:46 +08:00
environment:
- TZ=Asia/Shanghai
volumes:
- ./.nuxt:/wwwroot/.nuxt
- ./static:/wwwroot/static
- ./package.json:/wwwroot/package.json
- ./nuxt.config.js:/wwwroot/nuxt.config.js
working_dir: /wwwroot
networks:
default:
2023-03-15 16:53:28 +08:00
ipv4_address: 172.20.0.10
2023-03-15 15:30:46 +08:00
#docker network create --driver=bridge --subnet=172.20.0.0/16 --gateway=172.20.0.1 net-website
networks:
default:
driver: bridge
name: net-website
external: true