forked from adityaphasu/notion-clone
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
83 lines (78 loc) · 1.98 KB
/
Copy pathdocker-compose.yml
File metadata and controls
83 lines (78 loc) · 1.98 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
services:
frontend:
build:
context: .
dockerfile: Dockerfile
container_name: notion_frontend
ports:
- "3000:3000"
environment:
NODE_ENV: ${NODE_ENV}
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: ${NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY}
CLERK_SECRET_KEY: ${CLERK_SECRET_KEY}
EDGE_STORE_ACCESS_KEY: ${EDGE_STORE_ACCESS_KEY}
EDGE_STORE_SECRET_KEY: ${EDGE_STORE_SECRET_KEY}
depends_on:
- convex
volumes:
- .:/app
command: npm run dev
networks:
- notion_network
convex:
image: node:20-alpine
container_name: notion_convex
working_dir: /app
command: sh -c "npm install && npx convex dev --no-open"
ports:
- "3210:3210"
- "3211:3211"
volumes:
- .:/app
environment:
NODE_ENV: ${NODE_ENV}
INSTANCE_NAME: ${INSTANCE_NAME}
INSTANCE_SECRET: ${INSTANCE_SECRET}
DATABASE_URL: ${DATABASE_URL}
CONVEX_SITE_ORIGIN: ${CONVEX_SITE_ORIGIN}
CONVEX_CLOUD_ORIGIN: ${CONVEX_CLOUD_ORIGIN}
POSTGRES_HOST: ${POSTGRES_HOST}
POSTGRES_PORT: ${POSTGRES_PORT}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
depends_on:
- postgres
networks:
- notion_network
postgres:
image: postgres:15-alpine
container_name: notion_postgres
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
networks:
- notion_network
pgadmin:
image: dpage/pgadmin4
container_name: notion_pgadmin
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD}
ports:
- "8081:80"
depends_on:
- postgres
networks:
- notion_network
volumes:
postgres_data:
minio_data:
networks:
notion_network:
driver: bridge