docker-compose.yml 384 B

1234567891011121314151617181920212223
  1. version: '2'
  2. services:
  3. yidu_postgres:
  4. build:
  5. context: ./db
  6. environment:
  7. - PGDATA=/postgresql/data
  8. ports:
  9. - "5432:5432"
  10. volumes:
  11. - ./db/data:/postgresql/data
  12. yidu:
  13. build:
  14. context: ./yidu
  15. ports:
  16. - 80:8080
  17. volumes:
  18. - ./yidu/ROOT:/usr/local/tomcat/webapps/ROOT
  19. - ./yidu/yispider:/usr/local/spider