forked from plume/documentation
Sample compose file and Dockerfile for deployment
parent
fab869f08d
commit
aaee14f518
@ -0,0 +1,18 @@
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:10.5
|
||||
env_file: .env
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- "./data/postgres:/var/lib/postgresql/data"
|
||||
plume:
|
||||
build: .
|
||||
env_file: .env
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- "./data/plume/static/media:/app/media"
|
||||
- "./.env:/app/.env"
|
||||
ports:
|
||||
- "127.0.0.1:7878:7878"
|
@ -0,0 +1,12 @@
|
||||
BASE_URL=yourdomain.com
|
||||
# generate one with openssl rand -base64 45
|
||||
ROCKET_SECRET_KEY=randomstringhere
|
||||
|
||||
# you can safely leave those defaults
|
||||
POSTGRES_USER=plume
|
||||
POSTGRES_PASSWORD=plume
|
||||
DB_URL=postgres://plume:plume@postgres:5432/plume
|
||||
DATABASE_URL=postgres://plume:plume@postgres:5432/plume
|
||||
USE_HTTPS=1
|
||||
ROCKET_ADDRESS=0.0.0.0
|
||||
ROCKET_PORT=7878
|
Loading…
Reference in New Issue