-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
71 lines (64 loc) · 1.28 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
version: '3.3'
services:
backend:
restart: unless-stopped
build:
context: ./backend/
dockerfile: Dockerfile
ports:
- 4000:4000
networks:
- transcendence
volumes:
- ./backend/src:/app/src
depends_on:
- postgres
postgres:
image: postgres
restart: unless-stopped
ports:
- 5432:5432
env_file:
- .env
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_HOST: ${POSTGRES_HOST}
networks:
- transcendence
volumes:
- dbvolume:/var/lib/postgresql/data
frontend:
restart: unless-stopped
build:
context: ./frontend/
dockerfile: Dockerfile
ports:
- 3000:3000
networks:
- transcendence
depends_on:
- backend
volumes:
- ./frontend/src:/app/src
prisma_studio:
restart: unless-stopped
build:
context: ./backend/
dockerfile: prismaStudio/Dockerfile
depends_on:
- postgres
ports:
- 5555:5555
networks:
- transcendence
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5555/"]
interval: 10s
timeout: 5s
retries: 3
networks:
transcendence:
volumes:
dbvolume: