Commit 9463b212 by Tsubasa Namiki

Fixed docker data volume setting

and remove docker spec.
parent 5864bdba
data00restyaboard:
data:
image: busybox
volumes:
- /volumes/data00elasticsearch:/usr/share/elasticsearch/data
- /volumes/data00postgres:/var/lib/postgresql/data
- /volumes/data00restyaboard:/usr/share/nginx/html/media
- /usr/share/elasticsearch/data
- /var/lib/postgresql/data
- /usr/share/nginx/html/media
elasticsearch:
image: elasticsearch
volumes_from:
- data00restyaboard
- data
restart: always
postgres:
......@@ -17,7 +17,7 @@ postgres:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: something
volumes_from:
- data00restyaboard
- data
restart: always
restyaboard:
......@@ -28,5 +28,5 @@ restyaboard:
ports:
- 1234:80
volumes_from:
- data00restyaboard
- data
restart: always
......@@ -8,21 +8,3 @@ end
describe port(1234) do
it { should be_listening }
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