-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.integration.yml
More file actions
42 lines (37 loc) · 1.14 KB
/
docker-compose.integration.yml
File metadata and controls
42 lines (37 loc) · 1.14 KB
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
services:
http-backend:
image: nginx:1.27-alpine
container_name: proxy-http-backend
command: ["sh", "-c", "printf 'server { listen 5678; location / { root /usr/share/nginx/html; index index.html; } }' > /etc/nginx/conf.d/default.conf && echo -n ok > /usr/share/nginx/html/index.html && nginx -g 'daemon off;'"]
networks:
- proxy
tcp-backend:
image: alpine/socat
container_name: proxy-tcp-backend
command: ["-v", "TCP-LISTEN:15432,reuseaddr,fork", "SYSTEM:cat"]
networks:
- proxy
smtp-backend:
image: axllent/mailpit:v1.19.0
container_name: proxy-smtp-backend
command: ["--smtp", "0.0.0.0:1025", "--listen", "0.0.0.0:8025"]
networks:
- proxy
http-proxy:
environment:
HTTP_BACKEND_ENDPOINT: http-backend:5678
HTTP_SKIP_VALIDATION: "true"
depends_on:
- http-backend
tcp-proxy:
environment:
TCP_BACKEND_ENDPOINT: tcp-backend:15432
TCP_SKIP_VALIDATION: "true"
depends_on:
- tcp-backend
smtp-proxy:
environment:
SMTP_BACKEND_ENDPOINT: smtp-backend:1025
SMTP_SKIP_VALIDATION: "true"
depends_on:
- smtp-backend