-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.test.yml
58 lines (53 loc) · 1.24 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
version: "3.9"
services:
backend:
build:
context: .
dockerfile: _docker/Backend
networks:
- default
ports:
- "8000:8000"
depends_on:
- "db"
environment:
- APPLICATION_DEBUG=True
- DATABASE_NAME=privacymail
- DATABASE_USER=privacymail
- DATABASE_PASSWORD=privacymail
- DATABASE_HOST=db
- DATABASE_PORT=5432
- RAVEN_DSN=https://test@my-sentry.local
- MAIL_NEWSLETTER_USERNAME=test
- MAIL_NEWSLETTER_PASSWORD=test
- MAIL_PRIVAYCLETTER_USERNAME=test
- MAIL_PRIVAYCLETTER_PASSWORD=test
- MAIL_PRIVACYMAIL_USERNAME=test
- MAIL_PRIVACYMAIL_PASSWORD=test
- ALLOWED_HOST=localhost
db:
image: postgres
networks:
- default
volumes:
- ./dbdata/:/var/lib/postgresql/data
ports:
- "5432:5432"
environment:
- POSTGRES_DB=privacymail
- POSTGRES_USER=privacymail
- POSTGRES_PASSWORD=privacymail
testdb:
image: postgres
networks:
- default
volumes:
- ./testdbdata/:/var/lib/postgresql/data
ports:
- "5431:5432"
environment:
- POSTGRES_DB=TEST
- POSTGRES_USER=privacymail
- POSTGRES_PASSWORD=privacymail
networks:
default: