-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (38 loc) · 881 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
41 lines (38 loc) · 881 Bytes
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
services:
postgres:
image: postgres:16-alpine
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgrespassword
POSTGRES_DB: secureshare
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
backend:
build:
context: ./server
dockerfile: Dockerfile
restart: always
ports:
- "4000:4000"
environment:
- DATABASE_URL=postgresql://postgres:postgrespassword@postgres:5432/secureshare?schema=public
- JWT_SECRET=super_secret_jwt_key_demo
- NODE_ENV=development
depends_on:
- postgres
frontend:
build:
context: ./client
dockerfile: Dockerfile
restart: always
ports:
- "5173:5173"
environment:
- VITE_API_URL=http://localhost:4000
depends_on:
- backend
volumes:
postgres_data: