forked from papercups-io/papercups
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
30 lines (29 loc) · 905 Bytes
/
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
version: "3.2"
services:
papercups:
image: papercups/papercups:latest
restart: always
ports:
- "3000:3000"
- "4000:4000"
command: sh -c "sleep 10 && /entrypoint.sh db createdb && /entrypoint.sh db migrate && echo 'running' && /entrypoint.sh run"
depends_on:
- db
environment:
DATABASE_URL: "ecto://postgres:postgres@db/postgres"
# PUT YOUR OWN SECRET KEYBASE HERE (MUST BE AT LEAST 64 BYTES)
SECRET_KEY_BASE: "dvPPvOjpgX2Wk8Y3ONrqWsgM9ZtU4sSrs4l/5CFD1sLm4H+CjLU+EidjNGuSz7bz"
BACKEND_URL: "localhost"
MIX_ENV: "prod"
REQUIRE_DB_SSL: "false"
REACT_APP_FILE_UPLOADS_ENABLED: 1
# Replace with your domain name
REACT_APP_URL: "app.papercups.io"
db:
image: postgres:alpine
restart: always
container_name: papercups
ports:
- "5432:5432"
environment:
POSTGRES_PASSWORD: postgres