-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (52 loc) · 2.03 KB
/
docker-compose.yml
File metadata and controls
55 lines (52 loc) · 2.03 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
54
55
services:
f1-api:
environment:
- AllowedOrigins=${ALLOWED_ORIGINS:-http://localhost:5000,http://localhost:5001,http://localhost:5200}
- ASPNETCORE_ENVIRONMENT=${BLAZOR_ENVIRONMENT:-Development}
# Map .env variables to ASP.NET Core configuration format
- CosmosDb__ConnectionString=${COSMOSDB_CONNECTIONSTRING}
- CloudflareAccess__Audience=${CLOUDFLARE_AUDIENCE:-CloudflareAccessAudienceNotSet}
- CloudflareAccess__Issuer=https://f1-team.cloudflareaccess.com
- DevSettings__MockCurrentSelections=${DEV_MOCK_CURRENT_SELECTIONS:-false}
image: ghcr.io/philipwoulfe/f1competition:${TAG:-latest}
build:
context: .
dockerfile: ./src/F1.Api/Dockerfile
container_name: ${CONTAINER_NAME:-f1-test}
ports:
- "${HOST_PORT:-5000}:8080"
restart: unless-stopped
f1-web:
build:
context: ./src/F1.Web
dockerfile: Dockerfile
container_name: f1-web
environment:
- BLAZOR_ENVIRONMENT=${BLAZOR_ENVIRONMENT:-Development}
- API_BASE_URL=/api/
ports:
- "${HOST_PORT_WEB:-5001}:80"
restart: unless-stopped
tunnel:
profiles: ["cloud"] # It won't start unless you specifically ask for it
image: cloudflare/cloudflared:latest
container_name: cloudflared-tunnel
restart: unless-stopped
command: tunnel --no-autoupdate run
environment:
- TUNNEL_TOKEN=${TUNNEL_TOKEN} # Store that token in your .env file
# watchtower shouldn't be deployed to PROD as it will pull the latest build and deploy it
watchtower:
profiles: ["cloud"] # It won't start unless you specifically ask for it
image: nickfedor/watchtower:latest
container_name: watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /root/.docker/config.json:/config.json
environment:
# Tell watchtower explicitly to use the newer API version
- DOCKER_API_VERSION=1.44
- WATCHTOWER_POLL_INTERVAL=30
- WATCHTOWER_CLEANUP=true
- DOCKER_CONFIG=/
restart: unless-stopped