forked from b310-digital/groupwriter-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
75 lines (72 loc) · 2.44 KB
/
docker-compose.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
65
66
67
68
69
70
71
72
73
74
75
services:
editor:
build:
context: .
target: development
tty: true
stdin_open: true
environment:
BINDING: "0.0.0.0"
VITE_HOCUSPOCUS_SERVER_URL: "http://localhost:5173/backend"
ports:
- "${APP_FRONTEND_PORT:-5173}:5173"
# preview
- "4173:4173"
volumes:
- .:/home/node/app
#- app_editor_node_modules:/home/node/app
backend:
build:
context: ../groupwriter-backend
target: development
container_name: backend
tty: true
stdin_open: true
environment:
DATABASE_URL: postgresql://groupwriter-user:groupwriter-password@postgres/groupwriter-backend-dev
PORT: 3000
OBJECT_STORAGE_BUCKET: groupwriter
OBJECT_STORAGE_SCHEME: "http://"
OBJECT_STORAGE_HOST: minio
OBJECT_STORAGE_PORT: 9000
OBJECT_STORAGE_REGION: local
OBJECT_STORAGE_USER: ${DOCKER_COMPOSE_APP_OBJECT_STORAGE_USER}
OBJECT_STORAGE_PASSWORD: ${DOCKER_COMPOSE_APP_OBJECT_STORAGE_PASSWORD}
VAULT_ENCRYPTION_KEY_BASE64: ${DOCKER_COMPOSE_APP_VAULT_ENCRYPTION_KEY_BASE64}
FEATURE_REMOVE_DOCUMENTS_TOGGLE: ${DOCKER_COMPOSE_APP_FEATURE_REMOVE_DOCUMENTS_TOGGLE:-true}
FEATURE_REMOVE_DOCUMENTS_MAX_AGE_IN_DAYS: ${DOCKER_COMPOSE_APP_FEATURE_REMOVE_DOCUMENTS_MAX_AGE_IN_DAYS:-730}
ports:
- "3000:3000"
volumes:
- ../groupwriter-backend:/home/node/app
#- app_backend_node_modules:/home/node/app/node_modules
restart: always
postgres:
image: postgres:15-alpine
environment:
PGDATA: /var/lib/postgresql/data/pgdata
POSTGRES_DB: ${POSTGRES_DB:-groupwriter-backend-dev}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-groupwriter-password}
POSTGRES_USER: ${POSTGRES_USER:-groupwriter-user}
# Exposing the port is not needed unless you want to access this database instance from the host.
# Be careful when other postgres docker container are running on the same port
ports:
- "${POSTGRES_PORT:-5432}:5432"
volumes:
- postgres_data:/var/lib/postgresql/data/pgdata
minio:
image: minio/minio
container_name: minio
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: ${DOCKER_COMPOSE_MINIO_USER:-ROOTNAME}
MINIO_ROOT_PASSWORD: ${DOCKER_COMPOSE_MINIO_PASSWORD:-CHANGEME123}
volumes:
- ~/minio/data:/data
command: server /data --console-address ":9001"
volumes:
postgres_data:
app_editor_node_modules:
app_backend_node_modules: