-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
31 lines (29 loc) · 1.04 KB
/
compose.yaml
File metadata and controls
31 lines (29 loc) · 1.04 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
# Example compose config for Storyteller
services:
web:
image: registry.gitlab.com/smoores/storyteller:latest
# Uncomment for CUDA
# runtime: nvidia
volumes:
# This can be whatever you like; you can even use a
# named volume rather than a bind mount, though it's easier
# to inspect the files with a mount.
# If you're running on macOS or Windows, you may want to
# consider using a named volume, which will considerably
# improve filesystem I/O performance. See these VS Code
# docs for more information:
# https://code.visualstudio.com/remote/advancedcontainers/improve-performance#_use-a-targeted-named-volume
- ~/Documents/Storyteller:/data:rw
environment:
- STORYTELLER_SECRET_KEY_FILE=/run/secrets/secret_key
ports:
- "8001:8001"
secrets:
- secret_key
secrets:
secret_key:
# Generate a cryptopgraphically secure random string,
# e.g. with:
# openssl rand -base64 32
# and put it in this file
file: ./STORYTELLER_SECRET_KEY.txt