forked from logto-io/logto
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.uffizzi.yml
More file actions
44 lines (40 loc) · 953 Bytes
/
docker-compose.uffizzi.yml
File metadata and controls
44 lines (40 loc) · 953 Bytes
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
# This compose file is for demonstration only, do not use in prod.
version: "3.9"
x-uffizzi:
ingress:
service: app
port: 3001
continuous_previews:
deploy_preview_when_pull_request_is_opened: true
delete_preview_when_pull_request_is_closed: true
share_to_github: true
services:
app:
depends_on:
- "postgres"
build:
context: ./
dockerfile: ./Dockerfile
ports:
- 3001:3001
environment:
TRUST_PROXY_HEADER: 1
DB_URL: postgres://postgres:p0stgr3s@localhost:5432/logto
deploy:
resources:
limits:
memory: 2000M
entrypoint: /bin/sh
command:
- "-c"
- "npm run cli db seed -- --swe && ENDPOINT=$$UFFIZZI_URL npm start"
postgres:
image: postgres:14-alpine
user: postgres
environment:
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "p0stgr3s"
deploy:
resources:
limits:
memory: 500M