-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (35 loc) · 1.08 KB
/
Copy pathdocker-compose.yml
File metadata and controls
37 lines (35 loc) · 1.08 KB
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
# Development MongoDB + Redis for fog-node.
#
# This is for LOCAL DEVELOPMENT ONLY -- it runs Mongo with no authentication and
# Redis with no password, matching the defaults written by `npm run setup:dev`
# (mongodb://127.0.0.1:27017/fog and redis://127.0.0.1:6379/0). Do not use this
# for production.
#
# Redis backs the session store, which is REQUIRED: the CSRF token's secret lives
# in the session, so login and every form submit fail without it.
#
# Works with either Docker or Podman:
# docker compose up -d (or) podman compose up -d
# docker compose down podman compose down
#
services:
mongo:
image: mongo:7
container_name: fog-node-mongo
restart: unless-stopped
ports:
- "127.0.0.1:27017:27017"
volumes:
- fog-node-mongo-data:/data/db
redis:
image: redis:7-alpine
container_name: fog-node-redis
restart: unless-stopped
command: ["redis-server", "--appendonly", "yes"]
ports:
- "127.0.0.1:6379:6379"
volumes:
- fog-node-redis-data:/data
volumes:
fog-node-mongo-data:
fog-node-redis-data: