-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
59 lines (57 loc) · 1.43 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
services:
server:
image: betterde/focusly:latest
ports:
- "0.0.0.0:443:443/tcp"
restart: always
networks:
- focusly
hostname: server
environment:
- FOCUSLY_ENV=production
- FOCUSLY_HTTP_LISTEN=0.0.0.0:80
- FOCUSLY_LOGGING_LEVEL=INFO
# SurrealDB Configuration
- FOCUSLY_DATABASE_URL=wss://surrealdb.database.local/rpc
- FOCUSLY_DATABASE_DATABASE=focusly
- FOCUSLY_DATABASE_USERNAME=surrealdb
- FOCUSLY_DATABASE_PASSWORD=
- FOCUSLY_DATABASE_NAMESPACE=betterde
container_name: server
cerbos:
image: ghcr.io/cerbos/cerbos:latest
ports:
- "0.0.0.0:3592:3592"
- "0.0.0.0:3593:3593"
restart: always
command: ["server", "--config=/config/config.yaml"]
volumes:
- ./policies:/policies
- ./docker/cerbos/config:/config
networks:
- focusly
hostname: cerbos
container_name: cerbos
surrealdb:
user: "1000"
image: surrealdb/surrealdb:latest
restart: always
volumes:
- surrealdb-data:/surrealdb-data
command: [ "start" ]
hostname: surrealdb
networks:
- focusly
environment:
- SURREAL_BIND=0.0.0.0:8000
- SURREAL_USER=surrealdb
- SURREAL_PASS=
- SURREAL_PATH=file:///surrealdb-data/surreal.db
- SURREAL_CAPS_ALLOW_ALL=true
container_name: surrealdb
volumes:
surrealdb-data:
name: surrealdb-data
networks:
focusly:
name: focusly