compose.yaml 463 B

12345678910111213141516171819202122
  1. services:
  2. db:
  3. image: postgres
  4. restart: always
  5. # set shared memory limit when using docker compose
  6. shm_size: 128mb
  7. # or set shared memory limit when deploy via swarm stack
  8. #volumes:
  9. # - type: tmpfs
  10. # target: /dev/shm
  11. # tmpfs:
  12. # size: 134217728 # 128*2^20 bytes = 128Mb
  13. env_file: .env
  14. ports:
  15. - ${POSTGRES_PORT}:5432
  16. adminer:
  17. image: adminer
  18. restart: always
  19. ports:
  20. - 8888:8080