forked from for-ai/aya-annotations-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
104 lines (96 loc) · 1.88 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
version: '3'
services:
database:
build:
context: ./docker
dockerfile: Dockerfile.postgres
container_name: postgresdb
volumes:
- postgresdb:/var/lib/postgresql/data
env_file:
- ./backend/.env.local
ports:
- "5432:5432"
expose:
- 5432
networks:
- app_network
backend:
build:
context: ./backend
dockerfile: Dockerfile
env_file:
- ./backend/.env.${ENVIRONMENT}
ports:
- "8080:8080"
expose:
- 8080
networks:
- app_network
depends_on:
- database
stdin_open: true
tty: true
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
environment:
- NODE_ENV=local
- BACKEND_URL=http://backend:8080
- PORT=4000
ports:
- "4000:4000"
expose:
- 4000
networks:
- app_network
depends_on:
- backend
daily_leaderboard_job:
build:
context: ./backend/
dockerfile: jobs/daily/Dockerfile
env_file:
- ./backend/.env.${ENVIRONMENT}
networks:
- app_network
depends_on:
- database
weekly_leaderboard_job:
build:
context: ./backend/
dockerfile: jobs/weekly/Dockerfile
env_file:
- ./backend/.env.${ENVIRONMENT}
networks:
- app_network
depends_on:
- database
by_language_leaderboard_job:
build:
context: ./backend/
dockerfile: jobs/by_language/Dockerfile
env_file:
- ./backend/.env.${ENVIRONMENT}
networks:
- app_network
depends_on:
- database
overall_leaderboard_job:
build:
context: ./backend/
dockerfile: jobs/overall/Dockerfile
env_file:
- ./backend/.env.${ENVIRONMENT}
networks:
- app_network
depends_on:
- database
stdin_open: true
tty: true
networks:
app_network:
driver: bridge
volumes:
postgresdb: