-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathdocker-compose.demo.yml
More file actions
40 lines (37 loc) · 1016 Bytes
/
docker-compose.demo.yml
File metadata and controls
40 lines (37 loc) · 1016 Bytes
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
version: "3.1"
services:
database:
container_name: gram-demo-postgres
image: postgres:17
restart: unless-stopped
environment:
POSTGRES_PASSWORD: somethingsecret
POSTGRES_USER: gram
volumes:
- pgdata:/var/lib/postgresql/data
# ports <dont enable this unless you change passwords to something secure>:
# - 127.0.0.1:5432:5432
gram:
build: .
restart: unless-stopped
environment:
ORIGIN: http://localhost:4726 # (or your domain)
POSTGRES_HOST: database
POSTGRES_USER: gram
POSTGRES_PASSWORD: somethingsecret
POSTGRES_DATABASE: gram
POSTGRES_PORT: 5432
POSTGRES_DISABLE_SSL: "true"
NODE_ENV: staging # i.e. production/staging for non-demo purposes
AUTH_SECRET: <some long secret used to sign auth tokens>
# EMAIL_HOST: ""
# EMAIL_PORT: ""
# EMAIL_PASSWORD: ""
# EMAIL_USER: ""
ports:
- 127.0.0.1:4726:8080
networks:
default:
name: gram-demo
volumes:
pgdata: