LM
Size: a a a
LM
ВП
LM
LM
LM
ЯК
TAG=test docker-compose -f ../app/docker-compose.test.yml build
TAG=test docker-compose -f ../app/docker-compose.test.yml up -d db
sleep 10(как бы жду инициализации базы)
docker cp dump_for_test.sql app_db_1:/
TAG=test docker-compose -f ../app/docker-compose.test.yml exec -T db psql -d hrmdb -U user -f dump_for_test.sql
TAG=test docker-compose -f ../app/docker-compose.test.yml up -d
TAG=test docker-compose -f ../app/docker-compose.test.yml exec -T db psql -d hrmdb -U user -f dump_for_test.sqlкакая-то нестабильная
ЯК
ВП
ЯК
ЯК
ЯК
AZ
VA
AZ
mongo:
image: mongo:${MONGO_TAG}
ports:
- "127.0.0.1:${MONGO_PORT}:${MONGO_PORT}"
environment:
TZ: "Europe/Moscow"
healthcheck:
test: echo 'db.stats().ok' | mongo ${MONGO_HOST}:${MONGO_PORT}/test --quiet
interval: 3s
timeout: 5s
retries: 5
mongo-populate:
image: mongo:${MONGO_TAG}
volumes:
- ${PWD}/dump/:/backup/dump/:ro
environment:
TZ: "Europe/Moscow"
command: bash -c "mongorestore --drop --host ${MONGO_HOST}:${MONGO_PORT} --gzip /backup/dump"
depends_on:
mongo:
condition: service_healthy
ЯК
mongo:
image: mongo:${MONGO_TAG}
ports:
- "127.0.0.1:${MONGO_PORT}:${MONGO_PORT}"
environment:
TZ: "Europe/Moscow"
healthcheck:
test: echo 'db.stats().ok' | mongo ${MONGO_HOST}:${MONGO_PORT}/test --quiet
interval: 3s
timeout: 5s
retries: 5
mongo-populate:
image: mongo:${MONGO_TAG}
volumes:
- ${PWD}/dump/:/backup/dump/:ro
environment:
TZ: "Europe/Moscow"
command: bash -c "mongorestore --drop --host ${MONGO_HOST}:${MONGO_PORT} --gzip /backup/dump"
depends_on:
mongo:
condition: service_healthy
ЯК
mongo:
image: mongo:${MONGO_TAG}
ports:
- "127.0.0.1:${MONGO_PORT}:${MONGO_PORT}"
environment:
TZ: "Europe/Moscow"
healthcheck:
test: echo 'db.stats().ok' | mongo ${MONGO_HOST}:${MONGO_PORT}/test --quiet
interval: 3s
timeout: 5s
retries: 5
mongo-populate:
image: mongo:${MONGO_TAG}
volumes:
- ${PWD}/dump/:/backup/dump/:ro
environment:
TZ: "Europe/Moscow"
command: bash -c "mongorestore --drop --host ${MONGO_HOST}:${MONGO_PORT} --gzip /backup/dump"
depends_on:
mongo:
condition: service_healthy
ЯК
AZ
AZ