wekan: #------------------------------------------------------------------------------------- # ==== MONGODB AND METEOR VERSION ==== +# 关于 quay.io/wekan/wekan 和 wekanteam/wekan 的区别,请看 https://github.com/wekan/wekan/issues/1914 # a) Quay automatic builds do work work, https://quay.io/wekan/wekan # image: quay.io/wekan/wekan # b) Using specific version tag: # image: quay.io/wekan/wekan:v4.52 # c) Docker Hub builds do work https://hub.docker.com/r/wekanteam/wekan image:wekanteam/wekan #------------------------------------------------------------------------------------- -container_name:wekan-app +container_name:wekan-app12 restart:always networks: -wekan-tier #------------------------------------------------------------------------------------- # ==== BUILD wekan-app DOCKER CONTAINER FROM SOURCE, if you uncomment these ==== # ==== and use commands: docker-compose up -d --build #build: # context: . # dockerfile: Dockerfile #------------------------------------------------------------------------------------- ports: # Docker outsideport:insideport. Do not add anything extra here. # For example, if you want to have wekan on port 3001, # use 3001:8080 . Do not add any extra address etc here, that way it does not work. # remove port mapping if you use nginx reverse proxy, port 8080 is already exposed to wekan-tier network --80:8080 +# hostPort:containerPort。将容器内部端口8080映射到外部宿主机端口8082。 +-8082:8080 environment: -MONGO_URL=mongodb://wekandb:27017/wekan #--------------------------------------------------------------- # ==== ROOT_URL SETTING ====
# ROOT_URL 是必填的,不然wekan都打开不 # Change ROOT_URL to your real Wekan URL, for example: # If you have Caddy/Nginx/Apache providing SSL # - https://example.com # - https://boards.example.com # This can be problematic with avatars https://github.com/wekan/wekan/issues/1776 # - https://example.com/wekan # If without https, can be only wekan node, no need for Caddy/Nginx/Apache if you don't need them # - http://example.com # - http://boards.example.com # - http://192.168.1.100 <=== using at local LAN #- ROOT_URL=http://localhost # <=== using only at same laptop/desktop where Wekan is installed
# ganzhixiong @ ganzhixiongdeMacBook-Pro in ~/Documents/Docker/wekan12 on git:master o [11:08:55] $ docker-compose up -d Creating network "wekan12_wekan-tier" with driver "bridge" Creating volume "wekan12_wekan-db" with local driver Creating volume "wekan12_wekan-db-dump" with local driver Creating wekan-db12 ... done Creating wekan-app12 ... done
shell
1 2 3 4 5
# ganzhixiong @ ganzhixiongdeMacBook-Pro in ~/Documents/Docker/wekan12 on git:master x [11:12:29] $ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES ef8650e187f4 quay.io/wekan/wekan "node /build/main.js" 4 seconds ago Up 3 seconds 0.0.0.0:8082->8080/tcp, :::8082->8080/tcp wekan-app12 6f91e0465e86 mongo:4.4 "docker-entrypoint.s…" 5 seconds ago Up 3 seconds 27017/tcp wekan-db12