-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
49 lines (46 loc) · 1.16 KB
/
docker-compose.yaml
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
services:
mossy:
build: .
profiles:
- dev
ports:
- "8000:8000"
environment:
DATABASE_URL: postgresql://username:password@postgres:5432/dbname
REDIS_URL: redis://:password@redis:6379/0
WEBAUTHN_RP_SOURCE: http://localhost:8000
WEBAUTHN_RP_ID: localhost
LOG_LEVEL: debug
SERVICE_MODE: all
WORKERS: 2
container_name: mossy-app
hostname: mossy-app
postgres:
image: postgres
environment:
POSTGRES_DB: dbname
POSTGRES_USER: username
POSTGRES_PASSWORD: password
container_name: mossy-postgres
hostname: mossy-postgres
ports:
- "5432:5432"
# Garnet is a Redis-compatible in-memory key-value store. Not support all commands.
# garnet:
# image: ghcr.io/microsoft/garnet
# command: --auth Password --password password
# container_name: mossy-garnet
# hostname: mossy-garnet
# ulimits:
# memlock: -1
# ports:
# - "6379:6379"
redis:
image: redis
command: ["redis-server", "--requirepass", "password"]
container_name: mossy-redis
hostname: mossy-redis
ulimits:
memlock: -1
ports:
- "6379:6379"