2023-08-04 17:28:46 +00:00
|
|
|
services:
|
|
|
|
redis:
|
|
|
|
image: "redis"
|
|
|
|
restart: unless-stopped
|
2023-08-04 19:31:04 +00:00
|
|
|
command: >-
|
|
|
|
redis-server
|
|
|
|
--save 60 1
|
|
|
|
--loglevel notice
|
|
|
|
volumes:
|
|
|
|
- "./data/redis/rdata:/data"
|
2023-08-04 17:28:46 +00:00
|
|
|
red:
|
|
|
|
image: "ghcr.io/steffo99/todocolors-red"
|
|
|
|
restart: unless-stopped
|
|
|
|
environment:
|
|
|
|
REDIS_CONN: "redis://redis:6379/" # You probably don't need to change this
|
|
|
|
ports:
|
|
|
|
- "127.0.0.1:8080:8080"
|
|
|
|
blue:
|
|
|
|
image: "ghcr.io/steffo99/todocolors-blue"
|
|
|
|
restart: unless-stopped
|
|
|
|
environment:
|
|
|
|
NEXT_PUBLIC_API_BASE_URL: "ws://example.org:8080" # Change this to the URL where red will be accessible at
|
|
|
|
ports:
|
|
|
|
- "127.0.0.1:8081:8081"
|