-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
75 lines (70 loc) · 1.6 KB
/
docker-compose.yml
File metadata and controls
75 lines (70 loc) · 1.6 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
version: "3.9"
services:
db:
image: postgres:16
container_name: securesync-postgres
restart: unless-stopped
environment:
POSTGRES_DB: securesync
POSTGRES_USER: securesync
POSTGRES_PASSWORD: securesync
ports:
- "5432:5432"
volumes:
- securesync_pgdata:/var/lib/postgresql/data
server:
build:
context: ./server
container_name: securesync-server
depends_on:
- db
environment:
DATABASE_URL: "postgresql://securesync:securesync@db:5432/securesync?schema=public"
DB_HOST: "db"
DB_PORT: "5432"
DB_USER: "securesync"
DB_NAME: "securesync"
NODE_ENV: development
NEXT_DISABLE_TURBOPACK: "1"
command: ["npm", "run", "dev", "--", "--webpack"]
ports:
- "3000:3000"
volumes:
- ./server:/app
- /app/node_modules
- /app/.next
proxy:
build:
context: ./proxy
container_name: securesync-proxy
depends_on:
- server
environment:
PROXY_HOST: "0.0.0.0"
PROXY_PORT: "8080"
DEST_HOST: "server"
DEST_PORT: "3000"
ADMIN_PORT: "8081"
ports:
- "8080:8080"
- "8081:8081"
volumes:
- ./proxy:/workspace/proxy
client:
build:
context: ./client
container_name: securesync-client
depends_on:
- proxy
environment:
NEXT_PUBLIC_PROXY_URL: "http://proxy:8080"
NEXT_DISABLE_TURBOPACK: "1"
command: ["npm", "run", "dev", "--", "--webpack"]
ports:
- "3001:3001"
volumes:
- ./client:/app
- /app/node_modules
- /app/.next
volumes:
securesync_pgdata: