This repository has been archived by the owner on Mar 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.e2e.yaml
120 lines (112 loc) · 2.35 KB
/
compose.e2e.yaml
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
services:
db-e2e:
image: postgres:15.4
networks:
- backend-e2e
environment:
POSTGRES_PASSWORD: "${DB__PASSWORD}"
POSTGRES_USER: "${DB__USERNAME}"
POSTGRES_DB: "${DB__NAME}"
POSTGRES_HOST: "${DB__HOST}"
POSTGRES_PORT: "${DB__PORT}"
healthcheck:
test:
[
"CMD",
"pg_isready",
"--username",
"${DB__USERNAME}",
"--dbname",
"${DB__NAME}",
"--host",
"${DB__HOST}",
"--port",
"${DB__PORT}",
]
interval: 2s
timeout: 3s
retries: 3
start_period: 5s
cache-e2e:
image: redis:7.0
networks:
- backend-e2e
worker-e2e:
image: "${BACKEND_IMAGE}"
build:
context: ./backend
networks:
- backend-e2e
depends_on:
- cache-e2e
env_file:
- .env.template
- .env.e2e
command: "celery --app backend.worker:worker_app worker --loglevel INFO"
scheduler-e2e:
image: "${BACKEND_IMAGE}"
build:
context: ./backend
networks:
- backend-e2e
depends_on:
- cache-e2e
env_file:
- .env.template
- .env.e2e
command: "celery --app backend.worker:worker_app beat --loglevel INFO"
backend-e2e:
image: "${BACKEND_IMAGE}"
build:
context: ./backend
networks:
- backend-e2e
depends_on:
db-e2e:
condition: service_healthy
worker-e2e:
condition: service_started
scheduler-e2e:
condition: service_started
env_file:
- .env.template
- .env.e2e
frontend-e2e:
image: "${FRONTEND_IMAGE}"
build:
context: ./frontend
networks:
- frontend-e2e
proxy-e2e:
image: "${PROXY_IMAGE}"
build:
context: ./proxy
networks:
- backend-e2e
- frontend-e2e
- proxy-e2e
environment:
FRONTEND_UPSTREAM: http://frontend-e2e
BACKEND_UPSTREAM: http://backend-e2e
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost"]
interval: 2s
timeout: 3s
retries: 3
start_period: 5s
depends_on:
- frontend-e2e
- backend-e2e
e2e:
image: "${E2E_IMAGE}"
build:
context: ./e2e
networks:
- proxy-e2e
depends_on:
proxy-e2e:
condition: service_healthy
networks:
backend-e2e:
frontend-e2e:
proxy-e2e: