1 Star 1 Fork 0

zheng.cui/go-oauth2-server

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docker-compose.yml 1.53 KB
一键复制 编辑 原始数据 按行查看 历史
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:
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/ongo360/go-oauth2-server.git
git@gitee.com:ongo360/go-oauth2-server.git
ongo360
go-oauth2-server
go-oauth2-server
master

搜索帮助