forked from e621ng/e621ng
parent
cd837d2eb8
commit
79fd71e1f6
@ -11,6 +11,16 @@ x-environment: &common-env
|
|||||||
SECRET_TOKEN: 1c58518a891eff4520cadc59afa9e378a9325f1247544ff258096e497f095f45
|
SECRET_TOKEN: 1c58518a891eff4520cadc59afa9e378a9325f1247544ff258096e497f095f45
|
||||||
SESSION_SECRET_KEY: 44b4f44e9f253c406cbe727d403d500c1cecff943e4d2aea8f5447f28846fffe
|
SESSION_SECRET_KEY: 44b4f44e9f253c406cbe727d403d500c1cecff943e4d2aea8f5447f28846fffe
|
||||||
|
|
||||||
|
x-depends-on: &common-depends-on
|
||||||
|
elastic:
|
||||||
|
condition: service_healthy
|
||||||
|
memcached:
|
||||||
|
condition: service_started
|
||||||
|
postgres:
|
||||||
|
condition: service_started
|
||||||
|
redis:
|
||||||
|
condition: service_started
|
||||||
|
|
||||||
services:
|
services:
|
||||||
e621:
|
e621:
|
||||||
build:
|
build:
|
||||||
@ -27,11 +37,9 @@ services:
|
|||||||
<<: *common-env
|
<<: *common-env
|
||||||
RAILS_ENV: development
|
RAILS_ENV: development
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres
|
<<: *common-depends-on
|
||||||
- redis
|
iqdb:
|
||||||
- memcached
|
condition: service_started
|
||||||
- elastic
|
|
||||||
- iqdb
|
|
||||||
tty: true
|
tty: true
|
||||||
|
|
||||||
nginx:
|
nginx:
|
||||||
@ -77,6 +85,10 @@ services:
|
|||||||
- ES_JAVA_OPTS=-Xms1g -Xmx1g
|
- ES_JAVA_OPTS=-Xms1g -Xmx1g
|
||||||
volumes:
|
volumes:
|
||||||
- elastic_data:/usr/share/elasticsearch/data
|
- elastic_data:/usr/share/elasticsearch/data
|
||||||
|
healthcheck:
|
||||||
|
interval: 10s
|
||||||
|
timeout: 2s
|
||||||
|
test: nc -z elastic 9200
|
||||||
|
|
||||||
iqdb:
|
iqdb:
|
||||||
build: ./docker/iqdb
|
build: ./docker/iqdb
|
||||||
@ -108,11 +120,8 @@ services:
|
|||||||
- .:/app
|
- .:/app
|
||||||
- node_modules:/app/node_modules
|
- node_modules:/app/node_modules
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres
|
<<: *common-depends-on
|
||||||
- redis
|
entrypoint: bundle exec rails test
|
||||||
- memcached
|
|
||||||
- elastic
|
|
||||||
entrypoint: ["docker/test_runner.sh"]
|
|
||||||
profiles:
|
profiles:
|
||||||
- tests
|
- tests
|
||||||
|
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
#! /bin/sh
|
|
||||||
set -e
|
|
||||||
echo "Waiting for elastic to come up"
|
|
||||||
timeout 20 sh -c 'until nc -z elastic 9200; do sleep 1; done'
|
|
||||||
|
|
||||||
bundle exec rails test "$@"
|
|
Loading…
Reference in New Issue
Block a user