version: '2' services: nginx: container_name: '${BRANCH_NAME}-nginx' image: 'nginx:${TAG}' privileged: true build: context: ./services/nginx ports: - '80:80' mem_limit: 200m links: - 'auth:${BRANCH_NAME}-auth' - 'client:${BRANCH_NAME}-client' - 'item:${BRANCH_NAME}-item' - 'mailer:${BRANCH_NAME}-mailer' - 'print:${BRANCH_NAME}-print' - 'production:${BRANCH_NAME}-production' - 'route:${BRANCH_NAME}-route' - 'salix:${BRANCH_NAME}-salix' auth: environment: - 'NODE_ENV=${NODE_ENV}' container_name: '${BRANCH_NAME}-auth' image: 'auth:${TAG}' build: context: ./services/auth dockerfile: /home/juan/Projects/salix/Dockerfile ports: - '3000:3001' client: environment: - 'NODE_ENV=${NODE_ENV}' container_name: '${BRANCH_NAME}-client' image: 'client:${TAG}' build: context: ./services/client dockerfile: /home/juan/Projects/salix/Dockerfile ports: - '3000:3002' item: environment: - 'NODE_ENV=${NODE_ENV}' container_name: '${BRANCH_NAME}-item' image: 'item:${TAG}' build: context: ./services/item dockerfile: /home/juan/Projects/salix/Dockerfile ports: - '3000:3003' mailer: environment: - 'NODE_ENV=${NODE_ENV}' container_name: '${BRANCH_NAME}-mailer' image: 'mailer:${TAG}' build: context: ./services/mailer dockerfile: /home/juan/Projects/salix/Dockerfile ports: - '3000:3004' print: environment: - 'NODE_ENV=${NODE_ENV}' container_name: '${BRANCH_NAME}-print' image: 'print:${TAG}' build: context: ./services/print dockerfile: /home/juan/Projects/salix/Dockerfile ports: - '3000:3005' production: environment: - 'NODE_ENV=${NODE_ENV}' container_name: '${BRANCH_NAME}-production' image: 'production:${TAG}' build: context: ./services/production dockerfile: /home/juan/Projects/salix/Dockerfile ports: - '3000:3006' route: environment: - 'NODE_ENV=${NODE_ENV}' container_name: '${BRANCH_NAME}-route' image: 'route:${TAG}' build: context: ./services/route dockerfile: /home/juan/Projects/salix/Dockerfile ports: - '3000:3007' salix: environment: - 'NODE_ENV=${NODE_ENV}' container_name: '${BRANCH_NAME}-salix' image: 'salix:${TAG}' build: context: ./services/salix dockerfile: /home/juan/Projects/salix/Dockerfile ports: - '3000:3000'