-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.test.yml
40 lines (40 loc) · 1.23 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
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 2s
timeout: 5s
retries: 5
volumes:
- ./db/docker-entrypoint-initdb.d.ci:/docker-entrypoint-initdb.d
- pg-data:/var/lib/postgresql/data
- ./db/script:/script:ro
restart: always
backend:
image: eu.gcr.io/akvo-lumen/siwins/backend:latest
working_dir: /app/backend
command: tail -f /dev/null
volumes:
- ./:/app:delegated
environment:
- DATABASE_URL=postgresql://siwins:password@db:5432/siwins
- COVERALLS_REPO_TOKEN=${COVERALLS_REPO_TOKEN:-}
- AUTH0_CLIENT=$AUTH0_CLIENT
- AUTH0_USER=$AUTH0_USER
- AUTH0_PWD=$AUTH0_PWD
- SKIP_MIGRATION=yes
- MAILJET_SECRET=notset
- MAILJET_APIKEY=notset
- NOTIFICATION_RECIPIENTS=notset
- SIWINS_INSTANCE=production
depends_on:
db:
condition: service_healthy
volumes:
pg-data: