1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
version: '3' services: server: build: context: . dockerfile: server/Dockerfile expose: - 18000 image: egortensin/math-server ports: - 18000:18000 restart: always client: build: context: . dockerfile: client/Dockerfile entrypoint: ["/usr/local/bin/client", "-H", "server"] image: egortensin/math-client