memEx/docker-compose.yml

44 lines
1.2 KiB
YAML
Raw Permalink Normal View History

2021-09-04 16:19:23 -04:00
version: '3'
services:
2022-07-25 19:31:54 -04:00
memex:
2022-12-19 21:09:50 -05:00
image: shibaobun/memex
2022-07-25 19:31:54 -04:00
container_name: memex
2022-01-22 23:44:47 -05:00
restart: always
2021-09-04 16:19:23 -04:00
environment:
2022-02-25 21:35:22 -05:00
# HOST must be set!
# - HOST=your.domain.com
2022-07-25 19:31:54 -04:00
- DATABASE_URL=ecto://postgres:postgres@memex-db/memex
# Use `docker run -it shibaobun/memex /app/priv/random.sh` to generate a secret key base
2022-02-25 21:35:22 -05:00
# - SECRET_KEY_BASE=change-me-this-is-really-important-seriously-change-it
# uncomment to enable public sign ups, not recommended
# - REGISTRATION=public
# SMTP host must be set!
# - SMTP_HOST=smtp.mailserver.tld
# optional, default is 587
# - SMTP_PORT=587
# SMTP username/passwords must be set!
# - SMTP_USERNAME=username
# - SMTP_PASSWORD=password
# optional, default is false
# - SMTP_SSL=false
# optional, default is format below
2022-07-25 19:31:54 -04:00
# - EMAIL_FROM=no-reply@memex.example.tld
2022-11-27 21:23:27 -05:00
# optional, default is "memEx"
# - EMAIL_NAME=memEx
2022-01-22 23:44:47 -05:00
expose:
- "4000"
2021-09-04 16:19:23 -04:00
depends_on:
2022-07-25 19:31:54 -04:00
- memex-db
2021-09-04 16:19:23 -04:00
2022-07-25 19:31:54 -04:00
memex-db:
2021-09-04 16:19:23 -04:00
image: postgres:13
2022-07-25 19:31:54 -04:00
container_name: memex-db
2022-01-22 23:44:47 -05:00
environment:
- POSTGRES_USER="postgres"
- POSTGRES_PASSWORD="postgres"
2022-07-25 19:31:54 -04:00
- POSTGRES_DB="memex"
2022-02-25 21:35:22 -05:00
restart: always
2021-09-04 16:19:23 -04:00
volumes:
2022-01-22 23:44:47 -05:00
- ./data:/var/lib/postgresql/data