services:
container1:
image: nginx
links:
- container2:container
container2:
networks:
default:
aliases:
- alias-of-container2