docker-compose.yml 780 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. services:
  2. web:
  3. image: pyapi
  4. hostname: pg-web
  5. restart: unless-stopped
  6. build:
  7. context: .
  8. dockerfile: rest/Dockerfile
  9. environment:
  10. HOST: pg-db
  11. USER: pgdb
  12. PASSWORD: ${PGDB_PASSWORD}
  13. ports:
  14. - 192.168.0.20:11888:11888
  15. expose:
  16. - 11888
  17. networks:
  18. - priv
  19. db:
  20. hostname: pg-db
  21. restart: unless-stopped
  22. build:
  23. context: .
  24. dockerfile: Dockerfile
  25. environment:
  26. POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
  27. TZ: Pacific/Auckland
  28. PGTZ: Pacific/Auckland
  29. expose:
  30. - 5432
  31. shm_size: 128mb
  32. volumes:
  33. - ./data:/var/lib/postgresql/data
  34. networks:
  35. - priv
  36. networks:
  37. priv:
  38. enable_ipv6: true
  39. ipam:
  40. config:
  41. - subnet: fd00:0002::/64