-
Notifications
You must be signed in to change notification settings - Fork 18
/
docker-compose.yml
79 lines (78 loc) · 2.3 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
version: '3.5'
services:
brick-server-postgres:
container_name: brick-server-postgres
image: timescale/timescaledb-postgis:latest-pg13
environment: # Below secrets should be matched with the information in `.env` too.
- POSTGRES_USER=bricker
- POSTGRES_PASSWORD=brick-demo
- POSTGRES_DB=brick
- PGDATA=/var/lib/postgresql/data/pgdata
networks:
- brick-server-network
ports:
- "35432:5432"
volumes:
- type: bind
source: ./docker/init_postgis.sh
target: /docker-entrypoint-initdb.d/003_init_postgis.sh
read_only: true
- ../psqlData:/var/lib/postgresql/data # change the path to yours accordingly
brick-server-graphdb:
container_name: brick-server-graphdb
image: w1zzard/graphdb-free:9.9.0
networks:
- brick-server-network
ports:
- "37200:7200"
brick-server-mongo:
container_name: brick-server-mongo
image: mongo:4.2.3-bionic
networks:
- brick-server-network
ports:
- "37017:27017"
brick-server-redis:
container_name: brick-server-redis
image: 'redis:5.0.8'
command: redis-server --requirepass brick-demo
networks:
- brick-server-network
ports:
- "36379:6379"
brick-server:
container_name: brick-server
image: brick_server:minimal
restart: on-failure
volumes:
- ./brick_server:/root/brick_server
- ./tests:/root/tests
- ./examples:/root/examples
- /var/run/docker.sock:/var/run/docker.sock
build:
context: .
args:
DOCKER_BUILDKIT: 1
ports:
- "9000:9000"
networks:
- brick-server-network
- isolated_nw
environment:
- DEBUG=true
- HOST=brick-server
- MONGO_HOST=brick-server-mongo
- TIMESCALE_HOST=brick-server-postgres
- BRICK_HOST=brick-server-virtuoso
- GRAPHDB_HOST=brick-server-graphdb
- OAUTH_GOOGLE_CLIENT_ID=${OAUTH_GOOGLE_CLIENT_ID}
- OAUTH_GOOGLE_CLIENT_SECRET=${OAUTH_GOOGLE_CLIENT_SECRET}
# - GRAFANA_HOST=brick-server-grafana
depends_on:
- brick-server-graphdb
privileged: true
command: dockerize -wait http://brick-server-graphdb:7200/rest/repositories python3 -m brick_server.minimal
# entrypoint: /app/docker/start-reload.sh
networks:
brick-server-network:
isolated_nw: