-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yml
150 lines (139 loc) · 2.8 KB
/
docker-compose.prod.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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
version: "3.9"
services:
nginx:
image: nginx:latest
restart: unless-stopped
volumes:
- ./nginx/nginx.prod.conf:/etc/nginx/nginx.conf:ro
depends_on:
- qa-api
- qa-ui
ports:
- 7800:7800
networks:
- backnet
- frontnet
qa-api:
build:
context: qa-api
dockerfile: Dockerfile.prod
image: qa-api-prod
volumes:
- ./qa-api/:/app
- ./app-cache/:/app-cache
expose:
- 7777
depends_on:
- database
- flyway
- redis
env_file:
- project.env
deploy:
replicas: 5
restart_policy:
condition: on-failure
delay: '5s'
max_attempts: 5
window: '30s'
networks:
- backnet
- frontnet
qa-ui:
build:
context: qa-ui
dockerfile: Dockerfile.prod
image: qa-ui-prod
ports:
- 3000:80
depends_on:
- qa-api
volumes:
- ./qa-ui/:/app
- astro_node_modules:/app/node_modules
env_file:
- project.env
environment:
- VITE_QA_URL=/api
- VITE_LLM_URL=/llm/
deploy:
restart_policy:
condition: on-failure
delay: '5s'
max_attempts: 5
window: '30s'
networks:
- backnet
- frontnet
llm-api:
build:
context: llm-api
dockerfile: Dockerfile.prod
image: llm-api-prod
expose:
- 7000
volumes:
- ./llm-api/:/app
- ./app-cache/:/app-cache
deploy:
restart_policy:
condition: on-failure
delay: '5s'
max_attempts: 5
window: '30s'
networks:
- backnet
- frontnet
database:
container_name: database-server-dab-p2-b7c7d0d1-d2ff-4ef4-9553-e95ea3225629
image: postgres:14.1
restart: "unless-stopped"
volumes:
- ./production-database-data:/var/lib/postgresql/data
env_file:
- project.env
networks:
- backnet
flyway:
image: flyway/flyway:9.11.0-alpine
depends_on:
- database
volumes:
- ./flyway/sql/:/flyway/sql
command: -connectRetries=60 -baselineOnMigrate=true migrate
env_file:
- project.env
networks:
- backnet
pgadmin:
image: dpage/pgadmin4:6.20
restart: on-failure
env_file:
- project.env
depends_on:
- database
networks:
- backnet
redis:
image: redis:latest
command: redis-server /usr/local/etc/redis/redis.conf
volumes:
- ./redis/redis.conf:/usr/local/etc/redis/redis.conf
expose:
- 6379
networks:
- backnet
e2e-playwright:
entrypoint: "/bin/true"
build: e2e-playwright
image: e2e-playwright
network_mode: host
depends_on:
- nginx
volumes:
- ./e2e-playwright/tests:/e2e-playwright/tests
volumes:
astro_node_modules:
networks:
backnet:
frontnet: