-
Notifications
You must be signed in to change notification settings - Fork 20
/
compose.yaml
52 lines (49 loc) · 1.26 KB
/
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
services:
api:
restart: always
build:
context: ./api
ports:
- "9900:8080"
# depends_on:
# - postgres
environment:
- LOG_LEVEL=debug
- DATABASE_TYPE=sqlite # postgres|sqlite
# - DATABASE_URL=postgres://postgres:postgres@postgres:5432/formulosity?sslmode=disable
- DATABASE_URL=/root/sqlite3/formulosity.db
- SURVEYS_DIR=/root/surveys
- UPLOADS_DIR=/root/uploads
volumes:
- ./api/surveys:/root/surveys
- ./api/sqlite3:/root/sqlite3
- ./api/uploads:/root/uploads
ui:
restart: always
build:
context: ./ui
ports:
- "3000:3000"
environment:
- CONSOLE_API_ADDR_INTERNAL=http://api:8080
- CONSOLE_API_ADDR=http://localhost:9900
- IRON_SESSION_SECRET=e75af92dffba8065f2730472f45f2046941fe35f361739d31992f42d88d6bf6c
- HTTP_BASIC_AUTH=user:pass
depends_on:
- api
# postgres:
# image: postgres:16.0-alpine
# restart: always
# environment:
# - POSTGRES_USER=postgres
# - POSTGRES_PASSWORD=postgres
# - POSTGRES_DB=formulosity
# ports:
# - "5432:5432"
# volumes:
# - ./api/postgres-data:/var/lib/postgresql/data
# logging:
# driver: none
volumes:
dbvolume:
driver: local