-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
54 lines (50 loc) · 1.28 KB
/
docker-compose.yaml
File metadata and controls
54 lines (50 loc) · 1.28 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
services:
redis:
image: redis:7-alpine
container_name: basic-http-scheduling-redis
restart: unless-stopped
command: redis-server --appendonly yes --appendfsync everysec --requirepass ${REDIS_PASSWORD}
expose:
- 6379
volumes:
- redis_data:/data
networks:
- monitoring
environment:
- REDIS_PASSWORD=${REDIS_PASSWORD}
env_file:
- .env
healthcheck:
test: ["CMD", "redis-cli", "-a", "${REDIS_PASSWORD}", "ping"]
interval: 10s
timeout: 3s
retries: 5
app:
build:
context: .
dockerfile: Dockerfile
image: basic-http-scheduling:latest
container_name: basic-http-scheduling-app
restart: unless-stopped
env_file:
- .env
expose:
- 8080
networks:
- monitoring
labels:
- traefik.enable=true
- "traefik.http.routers.http-scheduler.rule=Host(`${WEBHOOK_HOST}`)"
- "traefik.http.routers.http-scheduler.tls=true"
- "traefik.http.routers.http-scheduler.tls.certResolver=lets-encrypt-ssl"
- traefik.http.services.http-scheduler.loadbalancer.server.port=8000
depends_on:
redis:
condition: service_healthy
volumes:
redis_data:
driver: local
networks:
monitoring:
name: monitoring_monitoring
external: true