-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml
71 lines (65 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# SPDX-FileCopyrightText: NOI Techpark <[email protected]>
#
# SPDX-License-Identifier: CC0-1.0
version: "3.4"
services:
app:
image: node:14.15
volumes:
- ./:/code
working_dir: /code
command: sh -c "test -d node_modules || npm install; npm run start"
ports:
- "${APP_PORT}:8998"
tty: true
frontend:
container_name: wcstore_frontend
image: ghcr.io/noi-techpark/it.bz.opendatahub.webcomponents/it.bz.opendatahub.webcomponents-local-wcs-frontend:latest
environment:
HOST: 0.0.0.0
env_file: .env
ports:
- "${FRONTEND_PORT}:80"
tty: true
api:
container_name: wcstore_api
image: ghcr.io/noi-techpark/it.bz.opendatahub.webcomponents/it.bz.opendatahub.webcomponents-local-wcs-api:latest
volumes:
- ./workspace:/workspace
env_file:
- .env
depends_on:
- postgres
ports:
- "${API_SERVER_PORT}:${API_SERVER_PORT}"
tty: true
cdn:
container_name: wcstore_cdn
image: ghcr.io/noi-techpark/it.bz.opendatahub.webcomponents/it.bz.opendatahub.webcomponents-local-wcs-cdn:latest
volumes:
- ./workspace:/workspace
env_file:
- .env
depends_on:
- postgres
ports:
- "${CDN_SERVER_PORT}:${CDN_SERVER_PORT}"
tty: true
postgres:
container_name: wcstore_postgres
image: postgres:13
ports:
- "${PSQL_PORT}:5432"
environment:
POSTGRES_USER: wcs
POSTGRES_PASSWORD: wcs
POSTGRES_DB: wcs
wcstore-cli:
container_name: wcstore-cli
image: ghcr.io/noi-techpark/it.bz.opendatahub.webcomponents/it.bz.opendatahub.webcomponents-local-wcs-cli:latest
env_file: .env
command: ./wait-for -t 0 api:${API_SERVER_PORT} -- python webcompstore-cli.py --push ${WC_VERSION}
depends_on:
- api
volumes:
- ./:/webcomponent