forked from soulpage/fullstack-assignment
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (42 loc) · 809 Bytes
/
docker-compose.yml
File metadata and controls
47 lines (42 loc) · 809 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
42
43
44
45
46
47
version: "3.8"
services:
frontend:
restart: always
build:
context: ./frontend/
dockerfile: Dockerfile
image: uj5ghare/chatgpt-frontend:latest
container_name: frontend-con
ports:
- "3000:3000"
env_file:
- ./frontend/.env.local
volumes:
- frontend:/usr/bin/app
networks:
- two-tier
depends_on:
- backend
backend:
restart: always
build:
context: ./backend/
dockerfile: Dockerfile
image: uj5ghare/chatgpt-backend:latest
container_name: backend-con
ports:
- "8000:8000"
env_file:
- ./backend/.env
volumes:
- backend:/usr/bin/app
networks:
- two-tier
volumes:
frontend:
driver: local
backend:
driver: local
networks:
two-tier:
driver: bridge