This repository has been archived by the owner on Mar 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yaml
69 lines (64 loc) · 1.66 KB
/
docker-compose.yaml
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
version: "3.9"
volumes:
postgres-data:
services:
# Bubbly agent
bubbly:
depends_on:
- "${BUBBLY_STORE_PROVIDER:-postgres}"
container_name: bubbly
build:
context: .
dockerfile: Dockerfile
environment:
BUBBLY_STORE_PROVIDER: "${BUBBLY_STORE_PROVIDER:-postgres}"
BUBBLY_AUTHENTICATION: "${BUBBLY_AUTHENTICATION:-false}"
BUBBLY_MULTITENANCY: "${BUBBLY_MULTITENANCY:-false}"
BUBBLY_AUTH_API: "http://bubbly-auth:1323/api/v1"
networks:
- bubbly-net
ports:
- "8111:8111" # bubbly agent
- "8222:8222" # NATS HTTP
- "4223:4223" # NATS service
command:
- "server"
- "--debug"
# One of the Store options for Bubbly
postgres:
image: postgres:13.0
container_name: postgres
environment:
POSTGRES_USER: "${POSTGRES_USER:-postgres}"
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD:-postgres}"
POSTGRES_DB: "${POSTGRES_DATABASE:-bubbly}"
networks:
- bubbly-net
ports:
- "5432:5432"
command:
- "postgres"
- "-c"
- "log_statement=all"
volumes:
- type: volume
source: postgres-data
target: /var/lib/postgresql/data
grafana:
image: grafana/grafana:8.0.6
container_name: grafana
networks:
- bubbly-net
ports:
# 3000 clashes with local svelte development...
- "3001:3000"
volumes:
- type: bind
read_only: true
source: "./grafana/provisioning/datasources"
target: "/etc/grafana/provisioning/datasources"
# User-defined bridge network is different from the default bridge
networks:
bubbly-net:
driver: bridge
internal: false