-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
49 lines (49 loc) · 1.79 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
version: '3'
services:
mci:
# image: brighthive/master-client-index:1.0.5
image: brighthive/master-client-index:1.0.6
ports:
- "8001:8000"
environment:
- APP_ENV=SANDBOX
- POSTGRES_USER=brighthive
- POSTGRES_PASSWORD=test_password
- POSTGRES_DATABASE=mci_dev
- POSTGRES_HOSTNAME=postgres_mci
- POSTGRES_PORT=5432
- MATCHING_SERVICE_URI=http://mci-matching-service:8000/compute-match
depends_on:
- postgres_mci
postgres_mci:
image: postgres:11.1
environment:
- POSTGRES_USER=brighthive
- POSTGRES_PASSWORD=test_password
- POSTGRES_DB=mci_dev
ports:
- "5432:5432"
# Spinning up postgres (when decoupled from the app)
# assigns the db files to postgres.
#
# postgres_mci_1 | The files belonging to this database system will be owned by user "postgres".
# postgres_mci_1 | This user must also own the server process.
#
# Without a designated user, the container does not have an (unprivileged, i.e., not "root")
# who owns the server process. That's a problem! Because the mci container
# cannot connect to the database and run migrations.
user: postgres
mci-matching-service:
image: 396527728813.dkr.ecr.us-east-2.amazonaws.com/brighthive/mci-matching-service:latest
ports:
- "8888:8000"
environment:
- APP_ENV=PRODUCTION
- POSTGRES_USER=brighthive
- POSTGRES_PASSWORD=test_password
- POSTGRES_DATABASE=mci_dev
- POSTGRES_HOSTNAME=postgres_mci
- POSTGRES_PORT=5432
networks:
mci_network:
external: true