generated from CDCgov/template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
90 lines (83 loc) · 2.7 KB
/
docker-compose.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
name: pstatus-api
services:
graphql:
image: quay.io/us-cdcgov/phdo/pstatus-graphql:latest
ports:
- "127.0.0.1:8090:8080" # GraphQL listener port
environment:
SECURITY_ENABLED: false
DATABASE: "couchbase"
COUCHBASE_CONNECTION_STRING: "couchbase://couchbase"
COUCHBASE_USERNAME: "admin"
COUCHBASE_PASSWORD: "password"
PSTATUS_WORKFLOW_NOTIFICATIONS_BASE_URL: ""
REPORT_SCHEMA_LOADER_SYSTEM: "file_system"
REPORT_SCHEMA_LOCAL_FILE_SYSTEM_PATH: "/reports"
depends_on:
- couchbase
restart: "always"
volumes:
- ./reports:/reports # Bind mount the report schemas folder
report-sink:
image: quay.io/us-cdcgov/phdo/pstatus-report-sink:latest
ports:
- "127.0.0.1:${SINK_PORT:-8080}:8080" # Rest API listener port
environment:
DATABASE: "couchbase"
COUCHBASE_CONNECTION_STRING: "couchbase://couchbase"
COUCHBASE_USERNAME: "admin"
COUCHBASE_PASSWORD: "password"
MSG_SYSTEM: "RABBITMQ"
RABBITMQ_EXCHANGE_TOPIC_NAME: "PSAPIExchange"
RABBITMQ_HOST: "rabbitmq"
RABBITMQ_PORT: 5672
RABBITMQ_REPORT_QUEUE_NAME: "PSAPIQueue"
RABBITMQ_ROUTING_KEY: "psapi1234"
RABBITMQ_USERNAME: "guest"
RABBITMQ_PASSWORD: "guest"
RABBITMQ_VIRTUAL_HOST: "/"
REPORT_SCHEMA_LOADER_SYSTEM: "file_system"
REPORT_SCHEMA_LOCAL_FILE_SYSTEM_PATH: "/reports"
depends_on:
- couchbase
- rabbitmq
restart: "always"
volumes:
- ./reports:/reports # Bind mount the report schemas folder
couchbase:
image: couchbase
ports:
- "8091-8096:8091-8096"
- "11210-11211:11210-11211"
environment:
- COUCHBASE_ADMINISTRATOR_USERNAME=admin
- COUCHBASE_ADMINISTRATOR_PASSWORD=password
deploy:
resources:
limits:
memory: 4G # Set the memory limit here
couchbase-setup:
image: couchbase # use the couchbase image, so we have the couchbase CLI tools preinstalled
depends_on:
- couchbase
restart: "no"
volumes:
- ./couchbase-init.sh:/scripts/couchbase-init.sh # Mount the setup script
entrypoint: ["bash", "-c", "/scripts/couchbase-init.sh"]
rabbitmq:
image: rabbitmq:management # docker image(with management plugin) to be used for rabbitmq service
ports:
- "5672:5672" # AMQP protocol port
- "15672:15672" # Management UI port
volumes:
- ./rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf:ro
- ./rabbitmq-definitions.json:/etc/rabbitmq/definitions.json:ro
environment:
RABBITMQ_DEFAULT_USER: ${RABBITMQ_USERNAME}
RABBITMQ_DEFAULT_PASS: ${RABBITMQ_PASSWORD}
volumes:
couchbase_data:
external: false
networks:
default:
driver: bridge