-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
172 lines (172 loc) · 4.28 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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
services:
dataportal-backend:
image: dataportal-backend
pull_policy: never
build:
context: ../dataportal
dockerfile: backend/Dockerfile
target: dev
ports:
- "3000:3000"
depends_on:
db:
condition: service_healthy
citation-service:
condition: service_started
volumes:
- ../dataportal/backend:/app
- ../dataportal/shared:/shared
- ../dataportal-fixtures:/dataportal-fixtures
env_file:
- ../dataportal/backend/dev.env
environment:
- SS_MODE
command: ["npm", "run", "start-dev"]
dataportal-backend-test:
image: dataportal-backend
pull_policy: never
ports:
- "3001:3000"
- "5921:5920"
depends_on:
db:
condition: service_healthy
dataportal-backend:
condition: service_started
volumes:
- ../dataportal/backend:/app
- ../dataportal/shared:/shared
env_file:
- ../dataportal/backend/test.env
environment:
- SS_MODE=test
command: ["npm", "run", "start-test"]
db:
image: "postgres:16"
volumes:
- ./db/data:/var/lib/postgresql/data
- ./db/initdb.d:/docker-entrypoint-initdb.d
ports:
- "54321:5432"
environment:
TZ: "Europe/Helsinki"
POSTGRES_USER: admin
POSTGRES_PASSWORD: admin
PGUSER: admin
healthcheck:
test: ["CMD", "psql", "-c", "select 1"]
interval: 1s
retries: 120
dataportal-frontend:
build:
context: ../dataportal
dockerfile: frontend/Dockerfile
target: dev
volumes:
- ../dataportal/frontend:/app
- ../dataportal/shared:/shared
ports:
- "8080:8080"
environment:
- VITE_BACKEND_URL=http://localhost:3000/api/
depends_on:
dataportal-backend:
condition: service_started
# Run production nginx locally:
# dataportal-frontend:
# build:
# context: ../dataportal
# dockerfile: frontend/Dockerfile
# target: prod
# args:
# - BACKEND_URL=http://localhost:3000/api/
# ports:
# - "8080:8080"
# environment:
# - DP_BACKEND_URL=http://localhost:3000/api/
# - MAINTENANCE=0
# depends_on:
# dataportal-backend:
# condition: service_started
moto-server:
image: "motoserver/moto:3.0.1"
storage-service:
build:
context: ../storage-service
target: dev
ports:
- "5900:5900"
depends_on:
db:
condition: service_healthy
moto-server:
condition: service_started
volumes:
- ../storage-service:/app
env_file:
- .env
environment:
- SS_MODE
- PGUSER=ss
- PGDATABASE=ss
- S3_ENDPOINT
- S3_ACCESSKEYID
- S3_SECRETACCESSKEY
command: ["npm", "run", "start-dev"]
pid-service:
build:
context: ../pid-service
target: dev
ports:
- "5800:5800"
env_file:
- ../pid-service/.env
volumes:
- ../pid-service:/app
cloudnet-processing:
build:
context: ../cloudnet-processing
target: dev
depends_on:
- "dataportal-backend"
- "storage-service"
- "pid-service"
volumes:
- ../cloudnet-processing/scripts:/app/scripts
- ../cloudnet-processing/src:/app/src
- ../cloudnet-processing/tests:/app/tests
- ../cloudnet-processing/download:/app/download
- ../cloudnetpy:/cloudnetpy
- ../cloudnetpy-qc:/cloudnetpy-qc
- ../doppy:/doppy
- ../mwrpy:/mwrpy
- ../rpgpy:/rpgpy
- ../voodoonet:/voodoonet
env_file:
- ../cloudnet-processing/dev.env
environment:
INFLUXDB_URL: http://influxdb:8086
INFLUXDB_ORG: cloudnet
INFLUXDB_BUCKET: housekeeping
INFLUXDB_TOKEN: super-secret-token
citation-service:
build:
context: ../citation-service
target: dev
ports:
- "3005:8080"
volumes:
- ../citation-service:/app
influxdb:
image: influxdb:2.3.0
ports:
- 8086:8086
environment:
DOCKER_INFLUXDB_INIT_MODE: setup
DOCKER_INFLUXDB_INIT_USERNAME: admin
DOCKER_INFLUXDB_INIT_PASSWORD: password
DOCKER_INFLUXDB_INIT_ORG: cloudnet
DOCKER_INFLUXDB_INIT_BUCKET: housekeeping
DOCKER_INFLUXDB_INIT_ADMIN_TOKEN: super-secret-token
INFLUX_TOKEN: super-secret-token
INFLUX_ORG: cloudnet