forked from undp/national-climate-transparency
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose copy.yml
142 lines (142 loc) · 3.7 KB
/
docker-compose copy.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
138
139
140
141
142
version: "3.3"
volumes:
data:
driver: local
filestore:
driver: local
services:
dbmrv:
container_name: dbmrv
image: postgres
restart: always
ports:
- "5433:5433"
environment:
POSTGRES_PASSWORD: "<ANY PASSWORD>"
POSTGRES_USER: root
PGPORT: 5433
PSQL_USERNAME: root
PGDATA: /data/postgres
volumes:
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
- data:/data/postgres
migration:
build:
context: .
dockerfile: ./backend/services/Dockerfile
depends_on:
- dbmrv
- national
command: ['yarn', 'migration:run']
environment:
DB_HOST: dbmrv
DB_PORT: 5433
DB_USER: root
DB_PASSWORD: "<ANY PASSWORD>"
DB_NAME: "carbondev"
national:
build:
context: .
dockerfile: ./backend/services/Dockerfile
ports:
- "9000:3000"
depends_on:
- dbmrv
environment:
DB_HOST: dbmrv
DB_USER: root
DB_PASSWORD: "<ANY PASSWORD>"
RUN_MODULE: national-api
rootEmail: <ROOT EMAIL>
systemCountryCode: "NG"
name: "Antactic Region"
logoBase64: "sss"
IS_EMAIL_DISABLED: "true"
LOCATION_SERVICE: OPENSTREET
ASYNC_OPERATIONS_TYPE: Database
HOST: "http://localhost:3030"
DOMAIN_MAP: "true"
EXPIRES_IN: "7200"
DB_PORT: "5433"
DB_NAME: "carbondev"
NODE_ENV: 'dev'
FILE_SERVICE: local
DISABLE_LOW_PRIORITY_EMAIL: "true"
SYSTEM_TYPE: CARBON_TRANSPARENCY_SYSTEM
SYSTEM_SYNC: true
SYNC_ENABLE: true
SYNC_ENDPOINT: 'http://192.168.1.43:3000'
SYNC_API_TOKEN: ''
BACKEND_HOST: http://localhost:9000
SYSTEM_NAME: National NDC Transparency System
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:
- "9100:3100"
depends_on:
- dbmrv
- national
environment:
DB_HOST: dbmrv
DB_USER: root
DB_PASSWORD: "<ANY PASSWORD>"
RUN_PORT: 3100
RUN_MODULE: analytics-api
DOMAIN_MAP: "true"
DB_PORT: "5433"
DB_NAME: "carbondev"
NODE_ENV: 'dev'
FILE_SERVICE: local
async-operations-handler:
build:
context: .
dockerfile: ./backend/services/Dockerfile
depends_on:
- dbmrv
- national
environment:
DB_HOST: dbmrv
DB_USER: root
DB_PASSWORD: "<ANY PASSWORD>"
RUN_MODULE: async-operations-handler,data-importer
LOCATION_SERVICE: https://mrv-common-dev.s3.amazonaws.com/flag.png
CERTIFIER_IMAGE : "https://mrv-common-dev.s3.amazonaws.com/flag.png"
SMTP_ENDPOINT: email-smtp.us-east-1.amazonaws.com
SMTP_PASSWORD: ""
SMTP_USERNAME: AKIAUMXKTXDJPDYDJ76J
IS_EMAIL_DISABLED: "true"
ASYNC_OPERATIONS_TYPE: Database
ITMO_API_KEY: ""
ITMO_EMAIL: ""
ITMO_PASSWORD: ""
DB_PORT: "5433"
DB_NAME: "carbondev"
REGISTRY_SYNC_ENABLE: true
NODE_ENV: 'dev'
SYNC_ENDPOINT: 'http://192.168.1.43:3000'
SYNC_API_TOKEN: ''
FILE_SERVICE: local
DISABLE_LOW_PRIORITY_EMAIL: "true"
SYSTEM_TYPE: CARBON_TRANSPARENCY_SYSTEM
SYNC_ENABLE: true
BACKEND_HOST: http://localhost:9000
web:
build:
context: .
dockerfile: ./web/Dockerfile
args:
PORT: 3030
REACT_APP_BACKEND: http://localhost:9000
REACT_APP_STAT_URL: http://localhost:9100
REACT_APP_COUNTRY_NAME: "Antarctic Region"
ports:
- "9030:3030"
depends_on:
- dbmrv
- national