mirror of
https://github.com/cupcakearmy/cryptgeon.git
synced 2025-03-10 05:28:29 +00:00
30 lines
714 B
YAML
30 lines
714 B
YAML
# DEV Compose file.
|
|
# For a production file see: README.md
|
|
|
|
services:
|
|
redis:
|
|
image: redis:7-alpine
|
|
# This is required to stay in RAM only.
|
|
command: redis-server --save "" --appendonly no
|
|
# Additionally, you can set a size limit. See link below on how to customise.
|
|
# https://redis.io/docs/manual/eviction/
|
|
# --maxmemory 1gb --maxmemory-policy allkeys-lrulpine
|
|
ports:
|
|
- 6379:6379
|
|
|
|
app:
|
|
build: .
|
|
env_file: .env.dev
|
|
depends_on:
|
|
- redis
|
|
restart: unless-stopped
|
|
ports:
|
|
- 3000:8000
|
|
|
|
healthcheck:
|
|
test: ['CMD', 'curl', '--fail', 'http://127.0.0.1:8000/api/live/']
|
|
interval: 1m
|
|
timeout: 3s
|
|
retries: 2
|
|
start_period: 5s
|