-
Notifications
You must be signed in to change notification settings - Fork 49
/
docker-compose.example.yml
66 lines (56 loc) · 1.77 KB
/
docker-compose.example.yml
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
version: "3"
services:
app:
image: ghcr.io/manyfold3d/manyfold:latest
ports:
- 3214:3214
volumes:
- /path/to/your/libraries:/libraries
environment:
PUID: 1000 # The ID of the user the app will run as
PGID: 1000 # The ID of the group the app will run as
SECRET_KEY_BASE: a_nice_long_random_string
REDIS_URL: redis://redis:6379/1
# Database connection details; we recommend using a separate PostgreSQL
# server for best performance
DATABASE_ADAPTER: postgresql
DATABASE_HOST: postgres
DATABASE_USER: manyfold
DATABASE_PASSWORD: password
DATABASE_NAME: manyfold
# "mysql2" is also available, and you can specify all details in a
# single DATABASE_URL variable if you prefer:
# DATABASE_URL: {adapter}://{user}:{password}@{host}/{name}
# You can also use the "sqlite3" adapter if you don't want to run a separate
# database server. If you do, specify a path to your database file in DATABASE_NAME,
# and make sure it's on a persistent volume! Host, user and password aren't required.
# DATABASE_URL: sqlite3:/config/manyfold.sqlite3
# For details of other optional environment variables, including features such
# as multiuser mode, visit https://manyfold.app/sysadmin/configuration.html
depends_on:
- postgres
- redis
networks:
- manyfold
links:
- postgres
- redis
postgres:
image: postgres:15
volumes:
- db_data:/var/lib/postgresql/data
environment:
POSTGRES_USER: manyfold
POSTGRES_PASSWORD: password
restart: on-failure
networks:
- manyfold
redis:
image: redis:7
restart: on-failure
networks:
- manyfold
volumes:
db_data:
networks:
manyfold: