-
Notifications
You must be signed in to change notification settings - Fork 108
/
postgres.yml
39 lines (39 loc) · 949 Bytes
/
postgres.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
##################################################################
#
# postgres.yml
#
# author: Rion Dooley <[email protected]>
#
# This is a docker compose file to run the Lightning data
# vizualization server with a PostgreSQL db. It will run on your
# Docker host, port 3000. To add authentication to the server, or
# leverage Amazon S3 storage, fill in the environment variables
# with the appropriate values.
#
# Run with
#
# docker-compose -f postgres.yml up
#
###################################################################
web:
extends:
file: common.yml
service: web
command: bash -c "node server.js"
links:
- db
environment:
DATABASE_URL: lightning:changeit@db:5432/postgres
NODE_ENV: production
LIGHTNING_USERNAME:
LIGHTNING_PASSWORD:
S3_KEY:
S3_BUCKET:
S3_SECRET:
db:
image: postgres
environment:
POSTGRES_USER: lightning
POSTGRES_PASSWORD: changeit
ports:
- 5432