version: '3.8'
services:
back:
image: alpine
command: echo "Hello there!!"
depends_on:
- db
networks:
- backnet
db:
image: nginx:alpine
volumes:
- data:/test
front:
- frontnet
frontnet:
backnet:
data: