-
Notifications
You must be signed in to change notification settings - Fork 550
/
docker-compose.yml
43 lines (42 loc) · 1.31 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
43
version: '2'
services:
web:
build: .
environment:
WEBSITE_TITLE: 'Test Title'
WEBSITE_HOME_CONTENT: 'Test Content'
WEBSITE_NAV_LOGO: ''
WEBSITE_APP_TITLE: 'Test App Title'
APP_USERNAME: username
APP_PASSWORD: password
DB_HOST: db
DB_PORT: 5432
DB_USERNAME: releaseserver
DB_NAME: releaseserver
DB_PASSWORD: secret
# DEKs should be 32 bytes long, and cryptographically random.
# You can generate such a key by running the following:
# require('crypto').randomBytes(32).toString('base64')
# PLEASE ENSURE THAT YOU CHANGE THIS VALUE IN PRODUCTION
DATA_ENCRYPTION_KEY: oIh0YgyxQbShuMjw4/laYcZnGKzvC3UniWFsqL0t4Zs=
# Recommended: 63 random alpha-numeric characters
# Generate using: https://www.grc.com/passwords.htm
TOKEN_SECRET: change_me_in_production
APP_URL: 'localhost:8080'
ASSETS_PATH: '/usr/src/electron-release-server/releases'
depends_on:
- db
ports:
- '8080:80'
entrypoint: ./scripts/wait.sh db:5432 -- npm start
volumes:
- ./releases:/usr/src/electron-release-server/releases
db:
image: postgres:11
environment:
POSTGRES_PASSWORD: secret
POSTGRES_USER: releaseserver
volumes:
- postgres:/var/lib/postgresql/data
volumes:
postgres: