代码拉取完成,页面将自动刷新
version: "2"
services:
etcd:
image: quay.io/coreos/etcd
command: etcd --initial-cluster-state new --listen-client-urls http://0.0.0.0:2379 --advertise-client-urls http://127.0.0.1:2379
volumes:
- "etcd-data:/default.etcd"
environment:
- ETCDCTL_API=3
etcd_config:
build:
context: .
dockerfile: ./Dockerfile-etcd-config
volumes:
- "etcd-data:/default.etcd"
environment:
- ETCDCTL_API=3
- ETCDCTL_ENDPOINTS=etcd:2379
depends_on:
- etcd
links:
- etcd
postgres:
image: "postgres"
volumes:
- "db-data:/var/lib/postgresql/data/pgdata"
environment:
PGDATA: "/var/lib/postgresql/data/pgdata"
POSTGRES_USER: "go_oauth2_server"
POSTGRES_PASSWORD: ""
POSTGRES_DB: "go_oauth2_server"
app:
container_name: go_oauth2_server
image: go-oauth2-server:latest
depends_on:
- etcd_config
- postgres
links:
- etcd
- postgres
build:
context: .
dockerfile: ./Dockerfile
ports:
- "8080:8080"
environment:
ETCD_ENDPOINTS: "http://etcd:2379"
command: [runserver]
app_testdata:
container_name: go_oauth2_server_testdata
image: go-oauth2-server:latest
build:
context: .
dockerfile: ./Dockerfile
environment:
ETCD_ENDPOINTS: "http://etcd:2379"
depends_on:
- etcd_config
- postgres
links:
- etcd
- postgres
command: ["loaddata", "oauth/fixtures/test_clients.yml"]
volumes:
etcd-data:
db-data:
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。