.PHONY: build dev-up dev-start dev-stop up start stop data shell-nginx shell-web shell-db log-nginx log-web log-ps log-rmq log-worker

build:
	docker-compose -f docker-compose.yml -f docker-compose.override-dev.yml build

dev-up:
	docker-compose -f docker-compose.yml -f docker-compose.override-dev.yml up

dev-start:
	docker-compose -f docker-compose.yml -f docker-compose.override-dev.yml start

dev-stop:
	docker-compose -f docker-compose.yml -f docker-compose.override-dev.yml stop

up:
	docker-compose up -d

start:
	docker-compose start

stop:
	docker-compose stop

data:
	docker volume create --name=laas-data

shell-nginx:
	docker exec -ti ng01 bash

shell-web:
	docker exec -ti dg01 bash

shell-db:
	docker exec -ti ps01 bash

log-nginx:
	docker-compose logs nginx

log-web:
	docker-compose logs web

log-ps:
	docker-compose logs postgres

log-rmq:
	docker-compose logs rabbitmq

log-worker:
	docker-compose logs worker