-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
50 lines (46 loc) · 1.02 KB
/
docker-compose.yaml
File metadata and controls
50 lines (46 loc) · 1.02 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
version: '3.8'
services:
redis:
image: redis:7-alpine
container_name: astrolabe-redis
ports:
- "6379:6379"
volumes:
- redis-data:/data
- ./redis.conf:/usr/local/etc/redis/redis.conf
command: redis-server /usr/local/etc/redis/redis.conf
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 5
restart: unless-stopped
networks:
- astrolabe-network
astrolabe:
build:
context: .
dockerfile: Dockerfile
container_name: astrolabe
ports:
- "8080:8080"
environment:
- REDIS_ADDR=redis:6379
- REDIS_PASSWORD=
- REDIS_DB=0
- ENABLE_PERSISTENCE=true
depends_on:
redis:
condition: service_healthy
restart: unless-stopped
networks:
- astrolabe-network
# Mount kubeconfig for local development
volumes:
- ${HOME}/.kube/config:/root/.kube/config:ro
volumes:
redis-data:
driver: local
networks:
astrolabe-network:
driver: bridge