-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.yml
43 lines (43 loc) · 1.1 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
version: '2.4'
services:
serverless:
image: ghcr.io/robertfmurdock/coupling-serverless:latest
ports:
- "3000:3000"
environment:
- LOCAL_DYNAMO_URL=http://dynamo:8000
- PUBLIC_URL=https://localhost
- CLIENT_URL=https://static.localhost
- NODE_TLS_REJECT_UNAUTHORIZED=0
- LAMBDA_ENDPOINT=http://127.0.0.1:3002
- WEBSOCKET_HOST=socket.localhost
- API_GATEWAY_MANAGEMENT_API_HOST=http://127.0.0.1:3001
- NODE_ENV=production
- ENABLE_PRERELEASE_FEATURES=true
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/local/api/health"]
interval: 2s
timeout: 1s
retries: 20
start_period: 0s
caddy:
image: caddy:2.4.6-alpine
user: "${UID-}:${GID-}"
ports:
- "80:80"
- "443:443"
volumes:
- $PWD/Caddyfile:/etc/caddy/Caddyfile
- $PWD/client:/client
- ~/caddy_data:/data
- caddy_config:/config
networks:
default:
aliases:
- static.localhost
dynamo:
image: amazon/dynamodb-local
ports:
- "8000:8000"
volumes:
caddy_config: