Skip to content

Instantly share code, notes, and snippets.

@Oliver-ke
Created August 30, 2019 03:06
Show Gist options
  • Save Oliver-ke/8f49ce02d2ce9bb2487efa02f4ec6a3a to your computer and use it in GitHub Desktop.
Save Oliver-ke/8f49ce02d2ce9bb2487efa02f4ec6a3a to your computer and use it in GitHub Desktop.
version: "3"
services:
app:
restart: always
build: .
container_name: wolfsbane-backend
links:
- postgres
environment:
DEV_DATABASE_URL: postgres://devuser:1234@postgres:5432/dev_db
NODE_ENV: development
PORT: 3000
ports:
- 3000:3000
command: npm run start:dev
volumes:
- .:/app/
- /app/node_modules
postgres:
image: postgres:10.4
ports:
- "35432:5432"
environment:
POSTGRES_USER: devuser
POSTGRES_PASSWORD: 1234
POSTGRES_DB: dev_db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment