docker-compose.yml 430 B

123456789101112131415161718192021
  1. version: '3.4'
  2. services:
  3. postgres:
  4. image: postgres:9.5
  5. ports:
  6. - "5432:5432"
  7. network_mode: "host"
  8. environment:
  9. - "POSTGRES_USER=postgres"
  10. - "POSTGRES_DB=test"
  11. - "POSTGRES_PASSWORD=password"
  12. #volumes:
  13. # - ./postgres_data/persistent/data:/var/lib/postgresql/data
  14. mongo:
  15. command: ["--smallfiles"]
  16. image: mongo:3.4
  17. ports:
  18. - "27017:27017"
  19. network_mode: "host"