-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
56 lines (55 loc) · 1.17 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
version: "1.5"
services:
client:
container_name: fe
build:
dockerfile: ./client/Dockerfile
volumes:
- ./client/src:/usr/src/app/src
ports:
- 80:80
environment:
- VITE_BASE_URL=http://localhost:3000/api
networks:
finance:
aliases:
- fe
server:
container_name: backend
build:
dockerfile: ./Dockerfile
volumes:
- ./src:/usr/src/app/src
- ./prisma:/usr/src/app/prisma
ports:
- 3000:3000
environment:
- DATABASE_URL=postgresql://postgres:password@postgresql:5432/finance
- PORT=3000
- CHATGPT_SECRET_KEY=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
networks:
finance:
aliases:
- backend
depends_on:
- postgresql
postgresql:
container_name: postgres
build:
dockerfile: ./database/Dockerfile
environment:
- DB_USER=postgres
- DB_PASSWORD=postgres
- DB_NAME=finance
volumes:
- ./database/data:/usr/lib/postgresql/data
ports:
- 5432:5432
networks:
finance:
aliases:
- postgresql
- db
networks:
finance:
driver: bridge