github.com/Richardknop/go-oauth2-server@v1.0.1/docker-compose.yml (about) 1 version: "2" 2 3 services: 4 etcd: 5 image: quay.io/coreos/etcd 6 command: etcd --initial-cluster-state new --listen-client-urls http://0.0.0.0:2379 --advertise-client-urls http://127.0.0.1:2379 7 volumes: 8 - "etcd-data:/default.etcd" 9 environment: 10 - ETCDCTL_API=3 11 12 etcd_config: 13 build: 14 context: . 15 dockerfile: ./Dockerfile-etcd-config 16 volumes: 17 - "etcd-data:/default.etcd" 18 environment: 19 - ETCDCTL_API=3 20 - ETCDCTL_ENDPOINTS=etcd:2379 21 depends_on: 22 - etcd 23 links: 24 - etcd 25 26 postgres: 27 image: "postgres" 28 volumes: 29 - "db-data:/var/lib/postgresql/data/pgdata" 30 environment: 31 PGDATA: "/var/lib/postgresql/data/pgdata" 32 POSTGRES_USER: "go_oauth2_server" 33 POSTGRES_PASSWORD: "" 34 POSTGRES_DB: "go_oauth2_server" 35 36 app: 37 container_name: go_oauth2_server 38 image: go-oauth2-server:latest 39 depends_on: 40 - etcd_config 41 - postgres 42 links: 43 - etcd 44 - postgres 45 build: 46 context: . 47 dockerfile: ./Dockerfile 48 ports: 49 - "8080:8080" 50 environment: 51 ETCD_ENDPOINTS: "http://etcd:2379" 52 command: [runserver] 53 54 app_testdata: 55 container_name: go_oauth2_server_testdata 56 image: go-oauth2-server:latest 57 build: 58 context: . 59 dockerfile: ./Dockerfile 60 environment: 61 ETCD_ENDPOINTS: "http://etcd:2379" 62 depends_on: 63 - etcd_config 64 - postgres 65 links: 66 - etcd 67 - postgres 68 command: ["loaddata", "oauth/fixtures/test_clients.yml"] 69 70 volumes: 71 etcd-data: 72 db-data: