-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.test.yml
40 lines (40 loc) · 1.4 KB
/
docker-compose.test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
---
version: "3"
services:
db:
command: "postgres -c 'shared_buffers=128MB' -c 'fsync=off' -c 'synchronous_commit=off' -c 'full_page_writes=off' -c 'max_connections=100' -c 'bgwriter_lru_maxpages=0' -c 'client_min_messages=warning'"
image: postgres:12-alpine
environment:
- POSTGRES_PASSWORD=password
volumes:
- ./db/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
- pg-data:/var/lib/postgresql/data
- ./db/script:/script:ro
restart: always
backend:
image: eu.gcr.io/akvo-lumen/isco/backend:latest
volumes:
- ./:/app:delegated
- ${SERVICE_ACCOUNT}:/credentials/:ro
working_dir: /app/backend
command: tail -f /dev/null
environment:
- DATABASE_URL=postgresql://isco_user:password@db:5432/isco
- SECRET_KEY=36ca26dbc9f6a435aa7ad404491d1650cd9485eef9ca8ea60501495b0526d4df
- GOOGLE_APPLICATION_CREDENTIALS=/credentials/isco-service-account.json
- WEBDOMAIN=notset
- COVERALLS_REPO_TOKEN=${COVERALLS_REPO_TOKEN:-}
- SEMAPHORE=${SEMAPHORE:-}
- SEMAPHORE_JOB_ID=${SEMAPHORE_JOB_ID:-}
- SEMAPHORE_WORKFLOW_ID=${SEMAPHORE_WORKFLOW_ID:-}
- SEMAPHORE_GIT_PR_NUMBER=${SEMAPHORE_GIT_PR_NUMBER:-}
- SKIP_MIGRATION=yes
- BUCKET_FOLDER=local
- CLIENT_ID=test
- CLIENT_SECRET=test
- MAILJET_SECRET=notset
- MAILJET_APIKEY=notset
depends_on:
- db
volumes:
pg-data: