-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (44 loc) · 974 Bytes
/
docker-compose.yml
File metadata and controls
48 lines (44 loc) · 974 Bytes
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
version: "3.8"
services:
redis:
image: redis:7-alpine
container_name: flashmeet-redis
restart: unless-stopped
ports:
- "6379:6379"
volumes:
- redis-data:/data
networks:
- flashmeet-network
command: redis-server --appendonly yes
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 5
start_period: 10s
app:
build:
context: .
dockerfile: Dockerfile
container_name: flashmeet-app
restart: unless-stopped
ports:
- "8080:8080"
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
- PORT=8080
depends_on:
redis:
condition: service_healthy
networks:
- flashmeet-network
# Uncomment to use pre-built image from GHCR instead of building locally
# image: ghcr.io/r0ld3x/flashmeet:latest
volumes:
redis-data:
driver: local
networks:
flashmeet-network:
driver: bridge