version: '3' services: redis: image: redis container_name: redis networks: default: ipv4_address: '172.18.0.12' nginx: image: nginx container_name: ngx volumes: - default:/data/ networks: default: ipv4_address: '172.18.0.11' ports: - '8080:80' depends_on: - redis networks: default: external: name: chan-network volumes: default: external: name: chan-volume
沒有留言:
張貼留言