forked from undp/carbon-registry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
137 lines (137 loc) · 3.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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
version: "3.3"
volumes:
data:
driver: local
filestore:
driver: local
services:
db:
container_name: db
image: postgres
restart: always
ports:
- "5432:5432"
environment:
POSTGRES_PASSWORD: "<ANY PASSOWORD>"
POSTGRES_USER: root
PSQL_USERNAME: root
# POSTGRES_HOST_AUTH_METHOD: trust
PGDATA: /data/postgres
volumes:
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
- data:/data/postgres
national:
build:
context: .
dockerfile: ./backend/services/Dockerfile
ports:
- "3000:3000"
depends_on:
- db
environment:
DB_HOST: db
DB_USER: root
DB_PASSWORD: "<ANY PASSOWORD>"
RUN_MODULE: national-api
rootEmail: <ROOT EMAIL>
Minister: ''
Department : ''
systemCountryCode: "NG"
systemCountryName: "CountryX"
systemContinentName: "CountryX"
name: "Antactic Region"
logoBase64: "sss"
IS_EMAIL_DISABLED: "true"
DISABLE_LOW_PRIORITY_EMAIL: "true"
EMAILPREFIX: ""
LOCATION_SERVICE: OPENSTREET
ASYNC_OPERATIONS_TYPE: Database
HOST: "http://localhost:3030"
DOMAIN_MAP: "true"
EXPIRES_IN: "7200"
BACKEND_HOST: "http://192.168.1.16:3000"
CONTACT_EMAIL: [email protected]
MINISTER_NAME_AND_DESIGNATION : "\nHonorable Minister X\nMinister\nMinistry of Environment, Forestry & Tourism"
volumes:
- filestore:/app/backend/services/public
- ./users.csv:/app/backend/services/users.csv
- ./organisations.csv:/app/backend/services/organisations.csv
stats:
build:
context: .
dockerfile: ./backend/services/Dockerfile
ports:
- "3100:3100"
depends_on:
- db
- national
environment:
DB_HOST: db
DB_USER: root
DB_PASSWORD: "<ANY PASSOWORD>"
RUN_PORT: 3100
RUN_MODULE: analytics-api
DOMAIN_MAP: "true"
replicator:
build:
context: .
dockerfile: ./backend/services/Dockerfile
depends_on:
- db
- national
environment:
DB_HOST: db
DB_USER: root
DB_PASSWORD: "<ANY PASSOWORD>"
# ,data-importer
RUN_MODULE: replicator,async-operations-handler
LOCATION_SERVICE: OPENSTREET
SMTP_ENDPOINT: email-smtp.us-east-1.amazonaws.com
SMTP_USERNAME: AKIAUMXKTXDJEQ555F4J
SMTP_PASSWORD: ""
IS_EMAIL_DISABLED: "true"
DISABLE_LOW_PRIORITY_EMAIL: "true"
EMAILPREFIX: ""
ASYNC_OPERATIONS_TYPE: Database
ITMO_API_KEY: ""
ITMO_EMAIL: ""
ITMO_PASSWORD: ""
MRV_ENDPOINT: 'http://192.168.123.20:9000'
SYNC_ENABLE: false
MRV_API_TOKEN: ''
BACKEND_HOST: "http://192.168.1.16:3000"
volumes:
- filestore:/app/backend/services/public
# async-operations-handler:
# build:
# context: .
# dockerfile: ./backend/services/Dockerfile
# depends_on:
# - db
# - national
# environment:
# DB_HOST: db
# DB_USER: root
# DB_PASSWORD: "<ANY PASSOWORD>"
# RUN_MODULE: async-operations-handler
# SMTP_ENDPOINT: email-smtp.us-east-1.amazonaws.com
# SMTP_PASSWORD: "<ANY PASSOWORD>"
# ASYNC_OPERATIONS_TYPE: Database
web:
build:
context: .
dockerfile: ./web/Dockerfile
args:
PORT: 3030
REACT_APP_BACKEND: http://localhost:3000
REACT_APP_STAT_URL: http://localhost:3100
REACT_APP_COUNTRY_NAME: "CountryX"
REACT_APP_GOVERNMENT_MINISTRY: "Ministry Of Environment"
REACT_APP_COUNTRY_FLAG_URL: "https://carbon-common-dev.s3.amazonaws.com/flag.png"
REACT_APP_COUNTRY_CODE: "NG"
REACT_APP_MAP_TYPE: "None"
ports:
- "3030:3030"
depends_on:
- db
- national