-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.test.yml
42 lines (37 loc) · 1.02 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
version: "3.5"
services:
indigo-database-app-test:
build:
context: .
dockerfile: Dockerfile-dev
environment:
JSONDATAFERRET_DEBUG: "True"
JSONDATAFERRET_DATABASE_NAME: app
JSONDATAFERRET_DATABASE_USER: postgres
JSONDATAFERRET_DATABASE_PASSWORD: 1234
JSONDATAFERRET_DATABASE_HOST: postgres
CLOUDAMQP_URL: amqp://user:1234@rabbitmq/app
volumes:
- ".:/app"
depends_on:
- postgres
# TODO Sleep is a hacky way to make sure the postgres & rabbitmq containers are ready - try and find something faster
command: "su -c 'sleep 10; python manage.py test --noinput'"
postgres:
image: postgres:15
environment:
POSTGRES_PASSWORD: 1234
POSTGRES_USER: postgres
POSTGRES_DB: app
volumes:
- ".:/app"
rabbitmq:
image: rabbitmq:3.9
hostname: rabbitmq
environment:
RABBITMQ_DEFAULT_USER: user
RABBITMQ_DEFAULT_PASS: 1234
RABBITMQ_DEFAULT_VHOST: app
networks:
default:
name: indigo-database-app-test