-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
51 lines (40 loc) · 919 Bytes
/
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
services:
postgres:
image: postgres:latest
ports:
- "5432:5432"
restart: always
environment:
POSTGRES_DB: assignEaseDB
POSTGRES_USER: lakshita
POSTGRES_PASSWORD: psqlAssignEasePwd
POSTGRES_HOST: localhost
volumes:
- postgres_data:/var/lib/postgresql/data
server:
build:
context: ./server
image: jainlakshita/assignease-frontend
container_name: django_container
command: daphne -b 0.0.0.0 -p 8000 server.asgi:application
ports:
- "8000:8000"
env_file:
- ./server/.env
depends_on:
- postgres
frontend:
build:
context: ./frontend
container_name: bun_container
image: jainlakshita/assignease-server
stdin_open: true
tty: true
ports:
- "5173:5173"
command: bun run dev --host 0.0.0.0
depends_on:
- server
- postgres
volumes:
postgres_data: