add dockerfile for hosting purposes
This commit is contained in:
parent
82ecf80068
commit
da2e7da762
5 changed files with 52 additions and 6 deletions
|
@ -10,5 +10,15 @@ services:
|
|||
POSTGRES_DB: local
|
||||
volumes:
|
||||
- pgdata:/var/lib/postgresql/data
|
||||
server:
|
||||
build: .
|
||||
pull_policy: always
|
||||
restart: always
|
||||
ports:
|
||||
- 127.0.0.1:3000:3000
|
||||
environment:
|
||||
DATABASE_URL: postgres://root:mysecretpassword@db:5432/local
|
||||
depends_on:
|
||||
- db
|
||||
volumes:
|
||||
pgdata:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue