Commit 9463b212 by Tsubasa Namiki

Fixed docker data volume setting

and remove docker spec.
parent 5864bdba
data00restyaboard: data:
image: busybox image: busybox
volumes: volumes:
- /volumes/data00elasticsearch:/usr/share/elasticsearch/data - /usr/share/elasticsearch/data
- /volumes/data00postgres:/var/lib/postgresql/data - /var/lib/postgresql/data
- /volumes/data00restyaboard:/usr/share/nginx/html/media - /usr/share/nginx/html/media
elasticsearch: elasticsearch:
image: elasticsearch image: elasticsearch
volumes_from: volumes_from:
- data00restyaboard - data
restart: always restart: always
postgres: postgres:
...@@ -17,7 +17,7 @@ postgres: ...@@ -17,7 +17,7 @@ postgres:
POSTGRES_USER: postgres POSTGRES_USER: postgres
POSTGRES_PASSWORD: something POSTGRES_PASSWORD: something
volumes_from: volumes_from:
- data00restyaboard - data
restart: always restart: always
restyaboard: restyaboard:
...@@ -28,5 +28,5 @@ restyaboard: ...@@ -28,5 +28,5 @@ restyaboard:
ports: ports:
- 1234:80 - 1234:80
volumes_from: volumes_from:
- data00restyaboard - data
restart: always restart: always
...@@ -8,21 +8,3 @@ end ...@@ -8,21 +8,3 @@ end
describe port(1234) do describe port(1234) do
it { should be_listening } it { should be_listening }
end end
describe docker_container('dockerfile_restyaboard_1') do
it { should be_running }
end
describe docker_container('dockerfile_postgres_1') do
it { should be_running }
end
describe docker_container('dockerfile_elasticsearch_1') do
it { should be_running }
end
describe docker_container('dockerfile_data00restyaboard_1') do
it { should have_volume('/usr/share/nginx/html/media','/volumes/data00restyaboard') }
it { should have_volume('/var/lib/postgresql/data','/volumes/data00postgres') }
it { should have_volume('/usr/share/elasticsearch/data','/volumes/data00elasticsearch') }
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment