-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
123 lines (113 loc) · 3.26 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
version: "3.7"
services:
minio:
image: minio/minio:RELEASE.2023-10-25T06-33-25Z
container_name: minio
environment:
- MINIO_ACCESS_KEY=minio
- MINIO_SECRET_KEY=minio123
ports:
- "9000:9000"
- "9001:9001"
volumes:
- ./data/minio:/export
command: server /export --console-address ":9001"
healthcheck:
test: ["CMD", "curl", "-I", "localhost:9000/minio/health/live"]
interval: 1s
timeout: 1s
retries: 20
createbuckets:
image: minio/mc:RELEASE.2023-10-24T21-42-22Z
depends_on:
minio:
condition: service_healthy
entrypoint: >
/bin/sh -c " /usr/bin/mc config host add myminio http://minio:9000 minio minio123; /usr/bin/mc mb myminio/community-solutions; "
postgres:
image: postgres:16
container_name: postgres
environment:
- POSTGRES_PASSWORD=docker
- POSTGRES_USER=docker
volumes:
- ./data/sql:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -d docker -U docker"]
interval: 1s
timeout: 1s
retries: 50
community-solutions:
build:
target: backend-hotreload
args:
git_branch: <docker>
git_commit: <compose>
develop:
watch:
- action: sync
path: backend/
target: /app
ignore:
- __pycache__/
- action: rebuild
path: backend/requirements.txt
container_name: community-solutions
volumes:
- ./keys:/app/config
ports:
- "8081:8081"
environment:
# The following environment variables are used by the backend for local
# development.
- DEPLOYMENT_DOMAINS=localhost
- SIP_POSTGRES_DB_SERVER=postgres
- SIP_POSTGRES_DB_PORT=5432
- SIP_POSTGRES_DB_NAME=postgres
- SIP_POSTGRES_DB_USER=docker
- SIP_POSTGRES_DB_PW=docker
- SIP_S3_FILES_HOST=minio
- SIP_S3_FILES_PORT=9000
- SIP_S3_FILES_ACCESS_KEY=minio
- SIP_S3_FILES_SECRET_KEY=minio123
- SIP_S3_FILES_BUCKET=community-solutions
- SIP_S3_FILES_USE_SSL=false
- GSUITE_CREDENTIALS_FILE=
- VERIF_CODE_FROM_EMAIL_ADDRESS=no-reply@betterinformatics.com
- RUNTIME_COMMUNITY_SOLUTIONS_SESSION_SECRET=42
- RUNTIME_COMMUNITY_SOLUTIONS_API_KEY=42
- RUNTIME_JWT_PRIVATE_KEY_PATH=
- RUNTIME_JWT_PUBLIC_KEY_PATH=
- FRONTEND_TITLE_PREFIX=
- FRONTEND_TITLE_SUFFIX=- Debug
- FRONTEND_FAVICON_URL=https://betterinformatics.com/static/img/favicon.ico
- FRONTEND_EMAIL_ADDRESS=nothing@localhost
# In preview mode, every user is an admin.
- PDEP_IS_PREVIEW=TRUE
depends_on:
postgres:
condition: service_healthy
minio:
condition: service_healthy
react-frontend:
profiles: [frontend] # only executed if the '--profile frontend' flag is given
build:
target: frontend-dev
args:
git_branch: <docker>
git_commit: <compose>
develop:
watch:
- action: sync
path: frontend/src
target: /app/src
- action: rebuild
path: frontend/package.json
ports:
- "3000:3000"
extra_hosts:
- "minio:127.0.0.1"
environment:
- BACKEND_HOST=community-solutions