You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
488 B

  1. version: "3"
  2. volumes:
  3. db-data:
  4. services:
  5. db:
  6. image: postgres:12
  7. volumes:
  8. - db-data:/var/lib/postgresql/data
  9. environment:
  10. - POSTGRES_DB=$DB_NAME
  11. - POSTGRES_PASSWORD=$DB_PASSWORD
  12. web:
  13. build:
  14. context: ..
  15. dockerfile: docker/Dockerfile
  16. env_file:
  17. - .env
  18. ports:
  19. - 8000:8000
  20. depends_on:
  21. - db
  22. command: bash -c 'while !</dev/tcp/db/5432; do sleep 1; done; uwsgi /opt/healthchecks/docker/uwsgi.ini'