Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3.1'
- services:
- db:
- image: postgres:9.6-alpine
- environment:
- POSTGRES_USER: work
- POSTGRES_PASSWORD: password1
- container_name: test_sv
- volumes:
- - data-db:/var/lib/postgresql
- volumes:
- data-db:
- # 事前にvolumeを作成している場合は以下のコメントを外す
- # external:
- # name: convoy_data-db
- [
- {
- "Id": "15aa91af404f082ecbaa6b397096f5f47b20640c62dcc9c635457bd2055a7975",
- "Created": "2017-12-04T14:28:11.596184856Z",
- "Path": "docker-entrypoint.sh",
- "Args": [
- "postgres"
- ],
- ...
- "Name": "/test_sv",
- "RestartCount": 0,
- "Driver": "overlay",
- "Platform": "linux",
- "MountLabel": "",
- "ProcessLabel": "",
- "AppArmorProfile": "",
- "ExecIDs": null,
- "HostConfig": {
- "Binds": [
- "work_data-db:/var/lib/postgresql:rw"
- ],
- "ContainerIDFile": "",
- "LogConfig": {
- "Type": "json-file",
- "Config": {}
- },
- "NetworkMode": "work_default",
- "PortBindings": {},
- "RestartPolicy": {
- "Name": "",
- "MaximumRetryCount": 0
- },
- "AutoRemove": false,
- "VolumeDriver": "",
- "VolumesFrom": [],
- ...
- },
- "GraphDriver": {
- ...
- },
- "Mounts": [
- {
- "Type": "volume",
- "Name": "9e44772442f9a93457a01172a17816801601b43ffeaea009a1548d55d8efebde",
- "Source": "/var/lib/docker/volumes/9e44772442f9a93457a01172a17816801601b43ffeaea009a1548d55d8efebde/_data",
- "Destination": "/var/lib/postgresql/data",
- "Driver": "local",
- "Mode": "",
- "RW": true,
- "Propagation": ""
- },
- {
- "Type": "volume",
- "Name": "work_data-db",
- "Source": "/var/lib/docker/volumes/work_data-db/_data",
- "Destination": "/var/lib/postgresql",
- "Driver": "local",
- "Mode": "rw",
- "RW": true,
- "Propagation": ""
- }
- ],
- "Config": {
- "Hostname": "15aa91af404f",
- "Domainname": "",
- "User": "",
- "AttachStdin": false,
- "AttachStdout": false,
- "AttachStderr": false,
- "ExposedPorts": {
- "5432/tcp": {}
- },
- "Tty": false,
- "OpenStdin": false,
- "StdinOnce": false,
- "Env": [
- "POSTGRES_PASSWORD=password1",
- "POSTGRES_USER=work",
- "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
- "LANG=en_US.utf8",
- "PG_MAJOR=9.6",
- "PG_VERSION=9.6.5",
- "PG_SHA256=06da12a7e3dddeb803962af8309fa06da9d6989f49e22865335f0a14bad0aaaa",
- "PGDATA=/var/lib/postgresql/data"
- ],
- "Cmd": [
- "postgres"
- ],
- "ArgsEscaped": true,
- "Image": "postgres:9.6-alpine",
- "Volumes": {
- "/var/lib/postgresql": {},
- "/var/lib/postgresql/data": {}
- },
- "WorkingDir": "",
- "Entrypoint": [
- "docker-entrypoint.sh"
- ],
- "OnBuild": null,
- "Labels": {
- "com.docker.compose.config-hash": "9313f5bb20018503d6e305687c67a382e204b9e0911a3fdd66c54507ee9293ce",
- "com.docker.compose.container-number": "1",
- "com.docker.compose.oneoff": "False",
- "com.docker.compose.project": "work",
- "com.docker.compose.service": "db",
- "com.docker.compose.version": "1.16.1"
- }
- },
- "NetworkSettings": {
- ...
- }
- }
- ]
Add Comment
Please, Sign In to add comment