44 lines
1.3 KiB
YAML
44 lines
1.3 KiB
YAML
#
|
|
# Usage: dotenv -f .env.test docker-compose -f config/docker/docker-compose-test.yaml -p danbooru up -d
|
|
#
|
|
# Docker Compose file used to create an instance of danbooru along with a test database to run the test suite.
|
|
#
|
|
# https://docs.docker.com/compose/compose-file/
|
|
#
|
|
|
|
version: '3'
|
|
services:
|
|
danbooru:
|
|
build:
|
|
context: ../..
|
|
dockerfile: config/docker/Dockerfile.danbooru
|
|
environment:
|
|
- DATABASE_URL=postgresql://danbooru:danbooru@localhost/danbooru
|
|
- ARCHIVE_DATABASE_URL=postgresql://danbooru:danbooru@localhost/danbooru
|
|
- DANBOORU_SECRET_KEY_BASE=1234
|
|
- DANBOORU_AWS_SQS_ENABLED
|
|
- DANBOORU_TWITTER_API_KEY
|
|
- DANBOORU_TWITTER_API_SECRET
|
|
- DANBOORU_PIXIV_LOGIN
|
|
- DANBOORU_PIXIV_PASSWORD
|
|
- DANBOORU_NIJIE_LOGIN
|
|
- DANBOORU_NIJIE_PASSWORD
|
|
- DANBOORU_NICO_SEIGA_LOGIN
|
|
- DANBOORU_NICO_SEIGA_PASSWORD
|
|
- DANBOORU_TUMBLR_CONSUMER_KEY
|
|
- DANBOORU_DEVIANTART_CLIENT_ID
|
|
- DANBOORU_DEVIANTART_CLIENT_SECRET
|
|
- DANBOORU_RAKISMET_KEY
|
|
- DANBOORU_RAKISMET_URL
|
|
- DANBOORU_IP_REGISTRY_API_KEY
|
|
- DANBOORU_GOOGLE_MAPS_API_KEY
|
|
depends_on:
|
|
- postgres
|
|
command: /app/config/docker/run-tests.sh
|
|
postgres:
|
|
build:
|
|
dockerfile: Dockerfile.postgres
|
|
environment:
|
|
POSTGRES_USER: danbooru
|
|
POSTGRES_PASSWORD: danbooru
|