-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (39 loc) · 990 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (39 loc) · 990 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
name: nitrocraft
services:
redis:
image: redis:7-alpine
container_name: nitrocraft-redis
command: ["redis-server", "--save", "60", "1", "--loglevel", "warning"]
restart: unless-stopped
volumes:
- redis-data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
nitrocraft:
image: docker.io/repgraphics/nitrocraft:latest
container_name: nitrocraft
# To build from the local Dockerfile instead, uncomment:
# build:
# context: .
# dockerfile: Dockerfile
depends_on:
redis:
condition: service_healthy
env_file:
- .env
environment:
REDIS_URL: redis://redis:6379
CACHE_BACKEND: redis
BIND: 0.0.0.0
PORT: 3000
ports:
- "3000:3000"
volumes:
- nitrocraft-images:/home/app/nitrocraft/images
restart: unless-stopped
volumes:
nitrocraft-images:
redis-data: