version: "3" networks: poms: driver: bridge external: false services: web: build: ./web depends_on: - server networks: - poms ports: - 80:80 restart: always server: build: ./server depends_on: - redis networks: - poms ports: - 8080:8080 restart: always model: build: ./model environment: - TZ=Asia/Shanghai networks: - poms restart: always redis: build: ./plugin/redis command: redis-server --requirepass 71FE1012A95B4CDA361DE3373BB9C13A networks: - poms ports: - 6379:6379 restart: always