github.com/ijc/docker-app@v0.6.1-0.20181012090447-c7ca8bc483fb/e2e/testdata/expected-json-render.golden (about) 1 { 2 "networks": { 3 "back": { 4 "ipam": {}, 5 "external": false 6 }, 7 "front": { 8 "ipam": {}, 9 "external": false 10 } 11 }, 12 "services": { 13 "api": { 14 "build": {}, 15 "credential_spec": {}, 16 "deploy": { 17 "resources": {}, 18 "placement": {} 19 }, 20 "image": "python:3.6", 21 "networks": { 22 "back": null, 23 "front": { 24 "aliases": [ 25 "corp.app.api.com", 26 "coolapp.com" 27 ] 28 } 29 } 30 }, 31 "db": { 32 "build": {}, 33 "credential_spec": {}, 34 "deploy": { 35 "resources": {}, 36 "placement": {} 37 }, 38 "image": "postgres:9.3", 39 "networks": { 40 "back": null 41 } 42 }, 43 "web": { 44 "build": {}, 45 "credential_spec": {}, 46 "deploy": { 47 "resources": {}, 48 "placement": {} 49 }, 50 "image": "nginx:latest", 51 "networks": { 52 "front": null 53 }, 54 "ports": [ 55 { 56 "mode": "ingress", 57 "target": 80, 58 "published": 8082, 59 "protocol": "tcp" 60 } 61 ], 62 "volumes": [ 63 { 64 "type": "volume", 65 "source": "static", 66 "target": "/opt/data/static" 67 } 68 ] 69 } 70 }, 71 "version": "3.6", 72 "volumes": { 73 "static": { 74 "name": "corp/web-static-data", 75 "external": true 76 } 77 } 78 }