-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.prod.yml
35 lines (33 loc) · 1.04 KB
/
docker-compose.prod.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
version: '3'
services:
db:
# Restart if the container crashes
restart: always
environment:
# Create the a postgres user with this username
POSTGRES_USER: libretube
# Create the a postgres user with this password
POSTGRES_PASSWORD: hunter12
# Create the the following postgres database
POSTGRES_DB: libretube
web:
# Restart if the container crashes
restart: always
ports:
# Exposes the server on port 80
- "80:3000"
environment:
# Change to "true" if you are using HTTPS (user facing)
HTTPS: "false"
# Change to "true" if you are running behind a reverse proxy server
PROXY: "false"
# The host the DB is on - defaults to the bundled postgres server
DBHOST: db
# The postgres user
DBUSER: libretube
# The postgres user's password
DBPASSWORD: hunter12
# The postgres database to use for storage
DBDATABASE: libretube
# DO NOT change this. This enables production optimizations
NODE_ENV: production