forked from inoda/journal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
42 lines (40 loc) · 1.16 KB
/
docker-compose.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
networks:
journal:
internal: true
proxy:
external: true
services:
journal:
#build: https://github.com/svanhoutte/journal.git#main
image: svanhoutte/journal:latest
volumes:
- /media/jc/floppy/journal/data:/app:rw
environment:
- RAILS_ENV=production
- SITE_DOMAIN=domain.tld
- DATABASE_URL=postgres://replaceme:RePLAcEpAsS@journal-db/journal
- CIPHER_KEY=replaceme # openssl rand -base64 32
- SHARING_TOKEN_CIPHER_IV=replaceme # openssl rand -base64 16
- SECRET_KEY_BASE=sPoNgeB0bRePlACEmE # random alphanumerical: tr -dc A-Za-z0-9 </dev/urandom | head -c 30; echo
ports:
- 8383:3000
networks:
- proxy
- journal
depends_on:
journal-db:
condition: service_healthy
restart: unless-stopped
journal-db:
image: postgres:alpine
healthcheck:
test: ["CMD", "pg_isready", "-U", "replaceme", "-d", "journal"]
environment:
- POSTGRES_DB=journal
- POSTGRES_USER=replaceme
- POSTGRES_PASSWORD=RePLAcEpAsS
volumes:
- /media/jc/floppy/journal/postgres:/var/lib/postgresql/data:rw
networks:
- journal
restart: unless-stopped