Skip to content

Instantly share code, notes, and snippets.

@hugoalmeidahh
Forked from diego3g/docker-compose.yml
Created June 23, 2021 03:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hugoalmeidahh/7baf69b00d7348896cea881410167c1a to your computer and use it in GitHub Desktop.
Save hugoalmeidahh/7baf69b00d7348896cea881410167c1a to your computer and use it in GitHub Desktop.
version: '3'
services:
postgres:
image: postgres
environment:
- POSTGRES_USER: ${DB_USERNAME}
- POSTGRES_PASSWORD: ${DB_PASSWORD}
app:
build: .
command: adonis serve --dev
env_file:
- .env
environment:
- DB_HOST=postgres
ports:
- "3333:3333"
depends_on:
- postgres
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment