forked from AI4Bharat/Dhruva-Platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-app.yml
60 lines (54 loc) · 1.1 KB
/
docker-compose-app.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"
services:
server:
container_name: server
image: server
stdin_open: true
tty: true
env_file:
- .env
depends_on:
- seed
- appdb-migration
volumes:
- app_data:/server
ports:
- "$BACKEND_PORT:$BACKEND_PORT"
command: uvicorn main:app --workers $BACKEND_WORKERS --port $BACKEND_PORT --host 0.0.0.0 --proxy-headers
networks:
- dhruva-network
client:
container_name: client
image: client
stdin_open: true
tty: true
ports:
- "$FRONTEND_PORT:$FRONTEND_PORT"
volumes:
- app_data:/client
env_file:
- .env
command: yarn start --port $FRONTEND_PORT
networks:
- dhruva-network
seed:
image: seed
container_name: seed
env_file:
- .env
command: sh -c "python3 main.py"
networks:
- dhruva-network
appdb-migration:
image: server
container_name: appdb-migration
env_file:
- .env
command: sh -c "python3 migrate.py"
networks:
- dhruva-network
volumes:
app_data: {}
networks:
dhruva-network:
name: dhruva-network