forked from hackla-engage/engage-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-test.yml
39 lines (38 loc) · 1.06 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
version: "3"
services:
backend:
environment:
- ENGAGE_TEST=True
- ENGAGE_DEBUG=True
- DJANGO_SECRET_KEY=examplesecretkeydonotuseinprod
- RECAPTCHAKEY=some_string
- POSTGRES_USER=engageuser
- POSTGRES_PASSWORD=engageuserpassword
- POSTGRES_DB=counciltag
- POSTGRES_PORT=5432
- POSTGRES_HOST=postgres
- REDIS_HOSTNAME=redis
- REDIS_PORT=6379
- AWS_ACCESS_KEY_ID=AKIAJHGBRQ5ZX6IUSX4A
- AWS_SECRET_ACCESS_KEY=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
- AWS_REGION=us-east-1
build: .
image: hack4laengage/engage_backend_service:latest
volumes:
- .:/engage_backend_service
working_dir: /engage_backend_service
entrypoint: ["sh", "/engage_backend_service/scripts/runtest.sh"]
ports:
- "8000:8000"
depends_on:
- postgres
links:
- postgres
postgres:
image: postgres:11-alpine
environment:
- POSTGRES_USER=engageuser
- POSTGRES_PASSWORD=engageuserpassword
- POSTGRES_DB=counciltag
ports:
- "${DB_PORT:-5432}:5432"