-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yaml
40 lines (40 loc) · 1.36 KB
/
docker-compose.yaml
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.1'
services:
pytest_citation_capture_pipeline:
build: .
image: pytest_citation_capture_pipeline:latest
container_name: pytest_citation_capture_pipeline
volumes:
- ./:/app
networks:
- pytest_citation_capture_pipeline
stdin_open: true
tty: true
entrypoint: scripts/support/pytest.sh
#entrypoint: bash
depends_on:
- pytest_citation_capture_db
environment:
- SQLALCHEMY_URL='postgres://citation_capture_pipeline:citation_capture_pipeline@pytest_citation_capture_db:5432/citation_capture_pipeline'
# When 'True', no events are emitted to the broker via the webhook
- TESTING_MODE=True
# When 'True', it converts all the asynchronous calls into synchronous,
# thus no need for rabbitmq, it does not forward to master
# and it allows debuggers to run if needed:
- CELERY_ALWAYS_EAGER=True
- CELERY_EAGER_PROPAGATES_EXCEPTIONS=True
pytest_citation_capture_db:
container_name: pytest_citation_capture_db
image: postgres:14.0
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres
volumes:
- ./scripts/support/init-db.sh:/docker-entrypoint-initdb.d/initdb.sh
networks:
- pytest_citation_capture_pipeline
networks:
pytest_citation_capture_pipeline:
driver: bridge