-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.example.yml
64 lines (62 loc) · 1.73 KB
/
docker-compose.example.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
version: "3.9"
services:
app:
build:
context: .
dockerfile: Dockerfile
working_dir: /app
ports:
- "3000:3000"
volumes:
- ./data/:/app/data
- ./data/images:/app/data/images
environment:
# Authentication (Logto)
# The URL to the Logto server
- LOGTO_ENDPOINT=http://localhost:3001
# The URL to the app
- LOGTO_BASE_URL=http://localhost:3000
# A 32 digit secret. Please randomize this
- LOGTO_COOKIE_SECRET=nyanyanyanyanyanyanyanyanyanyany
# Get these from your dashboard, make sure the app is "Traditional Web"
- LOGTO_APP_ID=appid
- LOGTO_APP_SECRET=appsecret
# Maloja
- MALOJA_URL=http://localhost:42010
- MALOJA_API_KEY=nyanyanyanyanyanyanyanyanyanyanyanyanyanyanyanyanyanyanyanyanyan
# Boombox
# URL to database
- DATABASE_URL=file:/app/data/db.sqlite
logto:
depends_on:
postgres:
condition: service_healthy
image: ghcr.io/logto-io/logto:prerelease
entrypoint: ["sh", "-c", "npm run cli db seed -- --swe && npm start"]
ports:
- 3001:3001
environment:
- TRUST_PROXY_HEADER=1
- DB_URL=postgres://postgres:p0stgr3s@postgres:5432/logto
- ENDPOINT
postgres:
image: postgres:14-alpine
user: postgres
- ./other-data/postgres:/var/lib/postgresql/data
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: p0stgr3s
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5
maloja:
image: krateng/maloja
ports:
- 42010:42010
volumes:
- ./other-data/maloja:/mljdata
environment:
- MALOJA_DATA_DIRECTORY=/mljdata
- MALOJA_FORCE_PASSWORD=testpass