-
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) · 1.21 KB
/
docker-compose.yml
File metadata and controls
55 lines (52 loc) · 1.21 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:
server:
container_name: server
build:
context: .
dockerfile: docker/backend.Dockerfile
env_file:
- .env
ports:
- "8080:8080"
environment:
DATA_DIR: /data
GOOGLE_CREDENTIALS_JSON: /data/google_credentials.json
volumes:
- dashboard_data:/data
- ./data/google_credentials.json:/data/google_credentials.json:ro
depends_on:
redis:
condition: service_healthy
required: false
restart: unless-stopped
web:
container_name: web
build:
context: .
dockerfile: docker/frontend.Dockerfile
ports:
- "80:80"
depends_on:
- server
restart: unless-stopped
# Optional external store — enable by setting STORE_URL=redis://redis:6379 in .env
# and running: docker compose --profile redis up
redis:
image: redis:7-alpine
container_name: redis
profiles:
- redis
ports:
- "6379:6379"
volumes:
- redis_data:/data
command: redis-server --save 60 1 --loglevel warning
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 5
restart: unless-stopped
volumes:
dashboard_data:
redis_data: