docker-compose.yml 493 B

1234567891011121314151617181920212223242526272829303132
  1. version: '3.7'
  2. services:
  3. postgres:
  4. image: postgres
  5. restart: always
  6. env_file:
  7. - ./.env
  8. volumes:
  9. - ./pgdata:/var/lib/postgresql/data
  10. ports:
  11. - '5433:5432'
  12. redis:
  13. image: redis
  14. restart: always
  15. ports:
  16. - '6378:6379'
  17. volumes:
  18. - ./redisdata:/var/lib/redis
  19. app:
  20. build: ./
  21. restart: always
  22. entrypoint: ./entrypoint.sh
  23. depends_on:
  24. - postgres
  25. - redis
  26. environment:
  27. REDIS_URL: redis://redis:6379