Advertisement
Guest User

Untitled

a guest
Mar 30th, 2020
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1.  
  2. version: "3.4"
  3. services:
  4. api:
  5. container_name: "app_api"
  6. image: api:latest
  7. build: ./api
  8. ports:
  9. - 3000:3000
  10. # volumes:
  11. # - ".:/usr/share/origin"
  12. # - "/var/run/docker.sock:/var/run/docker.sock"
  13. environment:
  14. - API_PORT=3000
  15. - LOG_LEVEL=debug
  16. - DEBUG=express:*
  17. - PG_HOST=postgres
  18. - PG_PORT=54320
  19. - PG_DATABASE=dev_app
  20. - PG_USER=api_user
  21. - PG_PW=password
  22.  
  23. postgres:
  24. image: "postgres:11"
  25. container_name: "postgres"
  26. ports:
  27. - "54320:54320"
  28. environment:
  29. - POSTGRES_PASSWORD=password
  30. - POSTGRES_USER=api_user
  31. - PGPORT=54320
  32. volumes:
  33. - postgres:/var/lib/postgresql/data
  34.  
  35. volumes:
  36. postgres:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement