Guest User

Untitled

a guest
Dec 4th, 2017
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.98 KB | None | 0 0
  1. version: '3.1'
  2. services:
  3. db:
  4. image: postgres:9.6-alpine
  5. environment:
  6. POSTGRES_USER: work
  7. POSTGRES_PASSWORD: password1
  8. container_name: test_sv
  9. volumes:
  10. - data-db:/var/lib/postgresql
  11. volumes:
  12. data-db:
  13. # 事前にvolumeを作成している場合は以下のコメントを外す
  14. # external:
  15. # name: convoy_data-db
  16.  
  17. [
  18. {
  19. "Id": "15aa91af404f082ecbaa6b397096f5f47b20640c62dcc9c635457bd2055a7975",
  20. "Created": "2017-12-04T14:28:11.596184856Z",
  21. "Path": "docker-entrypoint.sh",
  22. "Args": [
  23. "postgres"
  24. ],
  25. ...
  26. "Name": "/test_sv",
  27. "RestartCount": 0,
  28. "Driver": "overlay",
  29. "Platform": "linux",
  30. "MountLabel": "",
  31. "ProcessLabel": "",
  32. "AppArmorProfile": "",
  33. "ExecIDs": null,
  34. "HostConfig": {
  35. "Binds": [
  36. "work_data-db:/var/lib/postgresql:rw"
  37. ],
  38. "ContainerIDFile": "",
  39. "LogConfig": {
  40. "Type": "json-file",
  41. "Config": {}
  42. },
  43. "NetworkMode": "work_default",
  44. "PortBindings": {},
  45. "RestartPolicy": {
  46. "Name": "",
  47. "MaximumRetryCount": 0
  48. },
  49. "AutoRemove": false,
  50. "VolumeDriver": "",
  51. "VolumesFrom": [],
  52. ...
  53. },
  54. "GraphDriver": {
  55. ...
  56. },
  57. "Mounts": [
  58. {
  59. "Type": "volume",
  60. "Name": "9e44772442f9a93457a01172a17816801601b43ffeaea009a1548d55d8efebde",
  61. "Source": "/var/lib/docker/volumes/9e44772442f9a93457a01172a17816801601b43ffeaea009a1548d55d8efebde/_data",
  62. "Destination": "/var/lib/postgresql/data",
  63. "Driver": "local",
  64. "Mode": "",
  65. "RW": true,
  66. "Propagation": ""
  67. },
  68. {
  69. "Type": "volume",
  70. "Name": "work_data-db",
  71. "Source": "/var/lib/docker/volumes/work_data-db/_data",
  72. "Destination": "/var/lib/postgresql",
  73. "Driver": "local",
  74. "Mode": "rw",
  75. "RW": true,
  76. "Propagation": ""
  77. }
  78. ],
  79. "Config": {
  80. "Hostname": "15aa91af404f",
  81. "Domainname": "",
  82. "User": "",
  83. "AttachStdin": false,
  84. "AttachStdout": false,
  85. "AttachStderr": false,
  86. "ExposedPorts": {
  87. "5432/tcp": {}
  88. },
  89. "Tty": false,
  90. "OpenStdin": false,
  91. "StdinOnce": false,
  92. "Env": [
  93. "POSTGRES_PASSWORD=password1",
  94. "POSTGRES_USER=work",
  95. "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
  96. "LANG=en_US.utf8",
  97. "PG_MAJOR=9.6",
  98. "PG_VERSION=9.6.5",
  99. "PG_SHA256=06da12a7e3dddeb803962af8309fa06da9d6989f49e22865335f0a14bad0aaaa",
  100. "PGDATA=/var/lib/postgresql/data"
  101. ],
  102. "Cmd": [
  103. "postgres"
  104. ],
  105. "ArgsEscaped": true,
  106. "Image": "postgres:9.6-alpine",
  107. "Volumes": {
  108. "/var/lib/postgresql": {},
  109. "/var/lib/postgresql/data": {}
  110. },
  111. "WorkingDir": "",
  112. "Entrypoint": [
  113. "docker-entrypoint.sh"
  114. ],
  115. "OnBuild": null,
  116. "Labels": {
  117. "com.docker.compose.config-hash": "9313f5bb20018503d6e305687c67a382e204b9e0911a3fdd66c54507ee9293ce",
  118. "com.docker.compose.container-number": "1",
  119. "com.docker.compose.oneoff": "False",
  120. "com.docker.compose.project": "work",
  121. "com.docker.compose.service": "db",
  122. "com.docker.compose.version": "1.16.1"
  123. }
  124. },
  125. "NetworkSettings": {
  126. ...
  127. }
  128. }
  129. ]
Add Comment
Please, Sign In to add comment