This repository was archived by the owner on Jan 26, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
84 lines (78 loc) · 2.1 KB
/
docker-compose.yml
File metadata and controls
84 lines (78 loc) · 2.1 KB
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
services:
db:
image: postgres:18.1
ports:
- "5432:5432"
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USER}
POSTGRES_DB: "area"
volumes:
- "db_data:/var/lib/postgresql"
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U ${DB_USER} -d area" ]
interval: 10s
retries: 5
start_period: 10s
timeout: 10s
migrate:
build:
context: backend
command: "./migrate_bin"
depends_on:
db:
condition: service_healthy
environment:
DB_URI: "host=db user=${DB_USER} password=${DB_PASSWORD} dbname=area port=5432 sslmode=disable"
restart: no
server:
build:
context: backend
depends_on:
migrate:
condition: service_completed_successfully
ports:
- 8080:8080
environment:
DB_URI: "host=db user=${DB_USER} password=${DB_PASSWORD} dbname=area port=5432 sslmode=disable"
PUBLIC_URL: "http://localhost:8080"
JWT_TOKENS_SECRET: ${JWT_TOKENS_SECRET}
GITHUB_OAUTH2_CLIENT_ID: ${GITHUB_OAUTH2_CLIENT_ID}
GITHUB_OAUTH2_CLIENT_SECRET: ${GITHUB_OAUTH2_CLIENT_SECRET}
GOOGLE_OAUTH2_CLIENT_ID: ${GOOGLE_OAUTH2_CLIENT_ID}
GOOGLE_OAUTH2_CLIENT_SECRET: ${GOOGLE_OAUTH2_CLIENT_SECRET}
NOTION_OAUTH2_CLIENT_ID: ${NOTION_OAUTH2_CLIENT_ID}
NOTION_OAUTH2_CLIENT_SECRET: ${NOTION_OAUTH2_CLIENT_SECRET}
OPENAI_API_KEY: ${OPENAI_API_KEY}
PROVIDER_OAUTH2_CALLBACK_URL_WEB: "http://localhost:8081/home"
PROVIDER_OAUTH2_CALLBACK_URI_MOBILE: "area://home"
swagger:
image: swaggerapi/swagger-ui
depends_on:
- server
ports:
- 8082:8080
environment:
SWAGGER_JSON_URL: "http://localhost:8080/openapi.json"
client_web:
build:
context: apps/web
depends_on:
- server
- client_mobile
volumes:
- apk_data:/apk
restart: unless-stopped
ports:
- 8081:80
environment:
REACT_APP_API_URL: "http://localhost:8080"
client_mobile:
build:
context: apps/mobile
volumes:
- apk_data:/output
restart: no
volumes:
db_data:
apk_data: