使用docker搭建phabricator

codecraft

docker方式

docker run -it --name phabricator_database -p 3306:3306 phabricator_database
docker run -it --name phabricator -p 9091:80 --link phabricator_database:database phabricator

k8s方式

pod

apiVersion: v1
kind: Pod
metadata:
  name: phabricator
  namespace: default
  labels: 
    name: phabricator
spec:
  restartPolicy: Never
  containers:
    - name: phabricator-web
      image: phabricator
      imagePullPolicy: Always
      ports:
        - containerPort: 80
       env:
         - name: database
           value: localhost

    - name: phabricator-database
      image:  phabricator_database
      imagePullPolicy: Always
      ports:
        - containerPort: 3306

svc

apiVersion: v1
kind: Service
metadata: 
  namespace: default
  name: phabricator-service
  labels: 
    name: phabricator
spec: 
  type: NodePort
  ports:
    # the port that this service should serve on
    - port: 80
      nodePort: 31000
  # label keys and values that must match in order to receive traffic for this service
  selector: 
    name: phabricator
阅读 3.8k

code-craft
spring boot , docker and so on 欢迎关注微信公众号: geek_luandun

当一个代码的工匠回首往事时,不因虚度年华而悔恨,也不因碌碌无为而羞愧,这样,当他老的时候,可以很...

11.6k 声望
1.9k 粉丝
0 条评论
你知道吗?

当一个代码的工匠回首往事时,不因虚度年华而悔恨,也不因碌碌无为而羞愧,这样,当他老的时候,可以很...

11.6k 声望
1.9k 粉丝
文章目录
宣传栏