version: '2.1'
services:
client:
image: effectivetrainings/counter-app
environment:
- server_url=http://server:8080/client (1)
- application_server=false (2)
networks:
- effectivedocker
ports:
- 8080:8080
server:
image: effectivetrainings/counter-app
networks:
- effectivedocker
environment:
- application_server=true (3)
networks:
effectivedocker:
driver: bridge