-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.example.yml
More file actions
53 lines (48 loc) · 1.07 KB
/
docker-compose.example.yml
File metadata and controls
53 lines (48 loc) · 1.07 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
43
44
45
46
47
48
49
50
51
52
53
version: '3.8'
# Exemplo de uso do Webhook Tunnel com Docker Compose
# Este exemplo mostra como integrar o tunnel com seus serviços
services:
# Sua API
api:
image: node:18-alpine
working_dir: /app
command: npm start
ports:
- "3000:3000"
volumes:
- ./api:/app
environment:
- NODE_ENV=development
- PORT=3000
# Serviço de webhook receiver
webhook-receiver:
image: python:3.11-slim
working_dir: /app
command: python app.py
ports:
- "3001:3001"
volumes:
- ./webhook-receiver:/app
environment:
- FLASK_ENV=development
- PORT=3001
# Nginx como proxy (opcional)
nginx:
image: nginx:alpine
ports:
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- api
- webhook-receiver
# Após iniciar os containers:
# docker-compose up -d
#
# Exponha as portas com tunnel:
# tunnel start api 3000 --subdomain api
# tunnel start webhooks 3001 --subdomain webhooks
#
# Acesse:
# http://api.localhost:8000
# http://webhooks.localhost:8001