-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.test.yml
33 lines (33 loc) · 1.01 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
---
version: "3.9"
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
ports:
- 5432:5432
backend:
image: eu.gcr.io/akvo-lumen/idh-idc/backend:latest
volumes:
- ./backend:/app:delegated
working_dir: /app
command: ["./check.sh"]
environment:
- DATABASE_URL=postgresql://idc:password@db:5432/idh_idc
- SECRET_KEY=09d25e094faa6ca2556c818166b7a9563b93f7099f6f0f4caa6cf63b88e8d3e7
- CLIENT_ID=test
- CLIENT_SECRET=test
- MAILJET_APIKEY=test
- MAILJET_SECRET=test
- WEBDOMAIN=idc.akvotest.org
depends_on:
- db
volumes:
pg-data: