-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
60 lines (58 loc) · 1.09 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
version: "3.7"
services:
downloader:
build:
context: ./downloader
dockerfile: Dockerfile
container_name: travel_adviser_downloader
volumes:
- ./.cache:/.cache
restart: "no"
backend:
build:
context: ./api
hostname: api
restart: always
container_name: travel_adviser_api
expose:
- "8000"
ports:
- 8000:8000
env_file:
- .env
volumes:
- ./.cache:/root/.cache/gpt4all
command: uvicorn main:app --host 0.0.0.0 --port 8000 --reload
depends_on:
- downloader
networks:
- app-network
frontend:
build:
context: ./ui
hostname: ui
restart: always
env_file:
- .env
networks:
- app-network
container_name: travel_adviser_ui
ports:
- 4173:4173
nginx:
image: nginx:latest
container_name: travel_adviser_nginx
hostname: nginx
volumes:
- ./nginx:/etc/nginx
ports:
- 80:80
depends_on:
- backend
- frontend
networks:
- app-network
restart: always
networks:
app-network:
driver: bridge