forked from LUMII-Syslab/viziquer-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
93 lines (87 loc) · 2.38 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
# version: "3"
networks:
viziquer-network:
name: "viziquer-tools"
services:
viziquer:
image: ghcr.io/lumii-syslab/viziquer:development
depends_on:
- mongodb
- dss
ports:
- "${VIZIQUER_PORT}:3000"
container_name: viziquer
restart: unless-stopped
environment:
- MONGO_URL=mongodb://mongodb:27017/${MONGODB_DATABASE}
- ROOT_URL=http://127.0.0.1
- PORT=3000
- STARTUP_DELAY=10
- SCHEMA_SERVER_URL=http://localhost:${DSS_PORT}/api
- REAL_SCHEMA_SERVER_URL=http://dss:${DSS_PORT}/api
volumes:
- ./vq/init/autoload.json:/opt/bundle/bundle/private/jsons/autoload.json
- ./vq/init/services.json:/opt/bundle/bundle/private/jsons/services.json
networks:
- viziquer-network
mongodb:
image: mongo:6
restart: unless-stopped
container_name: mongodb
volumes:
- ./db/mongo:/data/db
- ./db/init/mongo:/docker-entrypoint-initdb.d
# environment:
# MONGO_INITDB_ROOT_USERNAME: ${MONGODB_USER}
# MONGO_INITDB_ROOT_PASSWORD: ${MONGODB_PASSWORD}
# MONGO_INITDB_ROOT_DATABASE: ${MONGODB_DATABASE}
# MONGODB_PORT: 27017
networks:
- viziquer-network
dss:
image: ghcr.io/lumii-syslab/data-shape-server:main
container_name: dss
restart: unless-stopped
depends_on:
- postgres
ports:
- ${DSS_PORT}:3030
environment:
- NODE_ENV=production
- DB_URL=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/rdfmeta
- PORT=3030
networks:
- viziquer-network
postgres:
image: postgres:17
restart: unless-stopped
container_name: postgres
shm_size: 128mb
ports:
- ${POSTGRES_PORT}:5432
volumes:
- ./db/pg:/var/lib/postgresql/data
- ./data/pg-dumps:/dumps
- ./db/init/pg:/docker-entrypoint-initdb.d
environment:
- POSTGRES_USER
- POSTGRES_PASSWORD
- POSTGRES_PORT
networks:
- viziquer-network
pgadmin:
image: dpage/pgadmin4:8.12.0
restart: unless-stopped
ports:
- ${PGADMIN_PORT}:80
# - 9003:443
container_name: pgadmin
environment:
- PGADMIN_DEFAULT_EMAIL
- PGADMIN_DEFAULT_PASSWORD
- PGADMIN_DISABLE_POSTFIX=true
- PGADMIN_SERVER_JSON_FILE=/pgadmin4/servers.json
volumes:
- ./config/pgadmin/servers.json:/pgadmin4/servers.json
networks:
- viziquer-network