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.

17 lines
574 B

3 years ago
  1. pgsql:
  2. image: 'postgres:13'
  3. ports:
  4. - '${FORWARD_DB_PORT:-5432}:5432'
  5. environment:
  6. PGPASSWORD: '${DB_PASSWORD:-secret}'
  7. POSTGRES_DB: '${DB_DATABASE}'
  8. POSTGRES_USER: '${DB_USERNAME}'
  9. POSTGRES_PASSWORD: '${DB_PASSWORD:-secret}'
  10. volumes:
  11. - 'sailpgsql:/var/lib/postgresql/data'
  12. networks:
  13. - sail
  14. healthcheck:
  15. test: ["CMD", "pg_isready", "-q", "-d", "${DB_DATABASE}", "-U", "${DB_USERNAME}"]
  16. retries: 3
  17. timeout: 5s