-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
56 lines (55 loc) · 1.01 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
services:
db:
image: postgres
volumes:
- db-data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
profiles:
- fullstack
pgadmin:
depends_on:
- db
image: dpage/pgadmin4
environment:
- PGADMIN_DEFAULT_EMAIL=admin@admin.com
- PGADMIN_DEFAULT_PASSWORD=root
ports:
- "5050:80"
profiles:
- fullstack
backend:
build:
context: ./backend
volumes:
- ./backend:/backend
ports:
- "8000:8000"
tty: true
env_file:
- .env
environment:
- POSTGRES_NAME=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
depends_on:
- db
profiles:
- fullstack
frontend:
depends_on:
- backend
build:
context: ./frontend
volumes:
- ./frontend:/frontend/
- /frontend/node_modules
ports:
- "3000:3000"
tty: true
profiles:
- fullstack
volumes:
db-data: