diff --git a/docker-compose.yml b/docker-compose.yml index 7cf2615..f1189f2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,112 +1,104 @@ version: "2" services: all-all-aws-connector: - image: ernestio/all-all-aws-connector:2.2.0 - links: - - nats depends_on: - config-store environment: CONNECTORS: nat.create.aws,nat.update.aws,nat.delete.aws,network.create.aws,network.delete.aws,route53.create.aws,route53.delete.aws,route53.update.aws,s3.create.aws,s3.update.aws,s3.delete.aws,elb.create.aws,elb.delete.aws,elb.update.aws,vpc.create.aws,vpc.delete.aws,instance.delete.aws,instance.update.aws,instance.create.aws,firewall.create.aws,firewall.update.aws,firewall.delete.aws,ebs_volume.create.aws,ebs_volume.delete.aws,rds_cluster.create.aws,rds_cluster.update.aws,rds_cluster.delete.aws,rds_instance.create.aws,rds_instance.update.aws,rds_instance.delete.aws,nats.find.aws,networks.find.aws,route53s.find.aws,s3s.find.aws,elbs.find.aws,vpcs.find.aws,instances.find.aws,firewalls.find.aws,ebs_volumes.find.aws,rds_clusters.find.aws,rds_instances.find.aws,internet_gateway.create.aws,internet_gateway.delete.aws,internet_gateways.find.aws,iam_role.create.aws,iam_role.delete.aws,iam_roles.find.aws,iam_policy.create.aws,iam_policy.delete.aws,iam_policies.find.aws,iam_instance_profile.create.aws,iam_instance_profile.delete.aws,iam_instance_profiles.find.aws ERNEST_CRYPTO_KEY: CRYPTO_KEY_TEMPLATE NATS_URI: nats://nats:4222 - all-all-azure-connector: - image: ernestio/all-all-azure-connector:2.2.0 + image: ernestio/all-all-aws-connector:3.0.0 links: - nats + all-all-azure-connector: depends_on: - config-store environment: CONNECTORS: public_ip.create.azure,public_ip.update.azure,public_ip.delete.azure,public_ips.find.azure,virtual_network.create.azure,virtual_network.update.azure,virtual_network.delete.azure,virtual_networks.find.azure,resource_group.create.azure,resource_group.update.azure,resource_group.delete.azure,resource_groups.find.azure,subnet.create.azure,subnet.update.azure,subnet.delete.azure,subnets.find.azure,network_interface.create.azure,network_interface.update.azure,network_interface.delete.azure,network_inerfaces.find.azure,storage_account.create.azure,storage_account.update.azure,storage_account.delete.azure,storage_accounts.find.azure,storage_container.create.azure,storage_container.update.azure,storage_container.delete.azure,storage_containers.find.azure,virtual_machine.create.azure,virtual_machine.update.azure,virtual_machine.delete.azure,virtual_machines.find.azure,lb.create.azure,lb.update.azure,lb.deletev,lbs.find.azure,sql_server.create.azure,sql_server.update.azure,sql_server.delete.azure,sql_servers.find.azure,local_network_gateway.create.azure,local_network_gateway.update.azure,local_network_gateway.delete.azure,local_network_gateways.find.azure,network_security_group.create.azure,network_security_group.update.azure,network_security_group.delete.azure,network_security_groups.find.azure,sql_database.create.azure,sql_database.update.azure,sql_database.delete.azure,sql_databases.find.azure,availability_set.create.azure,availability_set.update.azure,availability_set.delete.azure,availability_sets.find.azure,managed_disk.create.azure,managed_disk.update.azure,managed_disk.delete.azure,managed_disks.find.azure ERNEST_CRYPTO_KEY: CRYPTO_KEY_TEMPLATE NATS_URI: nats://nats:4222 - all-all-fake-connector: - image: ernestio/all-all-fake-connector:2.2.0 + image: ernestio/all-all-azure-connector:3.0.0 links: - nats + all-all-fake-connector: depends_on: - config-store environment: ERNEST_CRYPTO_KEY: CRYPTO_KEY_TEMPLATE NATS_URI: nats://nats:4222 - all-all-vcloud-connector: - image: ernestio/all-all-vcloud-connector:2.2.0 + image: ernestio/all-all-fake-connector:3.0.0 links: - nats + all-all-vcloud-connector: depends_on: - config-store environment: ERNEST_CRYPTO_KEY: CRYPTO_KEY_TEMPLATE NATS_URI: nats://nats:4222 - api-gateway: - image: ernestio/api-gateway:2.2.0 - ports: - - 8080:8080 + image: ernestio/all-all-vcloud-connector:3.0.0 links: - nats + api-gateway: depends_on: - config-store environment: ERNEST_CRYPTO_KEY: CRYPTO_KEY_TEMPLATE JWT_SECRET: GENERATEDJWTSECRET NATS_URI: nats://nats:4222 - authenticator: - image: ernestio/authenticator:2.1.0 + image: ernestio/api-gateway:3.0.0 links: - nats + ports: + - 8080:8080 + authenticator: depends_on: - config-store environment: ERNEST_CRYPTO_KEY: CRYPTO_KEY_TEMPLATE JWT_SECRET: GENERATEDJWTSECRET NATS_URI: nats://nats:4222 - config-store: - image: ernestio/config-store:2.2.0 - entrypoint: /go/bin/config-store -config /etc/ernest/config.json - volumes: - - ./config/config-store/:/etc/ernest/ + image: ernestio/authenticator:3.0.0 links: - nats + authorization-store: + depends_on: + - config-store environment: ERNEST_CRYPTO_KEY: CRYPTO_KEY_TEMPLATE NATS_URI: nats://nats:4222 - datacenter-store: - image: ernestio/datacenter-store:2.2.0 + image: ernestio/authorization-store:3.0.0 links: - nats - depends_on: - - config-store + config-store: + entrypoint: /go/bin/config-store -config /etc/ernest/config.json environment: ERNEST_CRYPTO_KEY: CRYPTO_KEY_TEMPLATE NATS_URI: nats://nats:4222 - definition-mapper: - image: ernestio/definition-mapper:2.2.0 + image: ernestio/config-store:3.0.0 links: - nats - - postgres + volumes: + - ./config/config-store/:/etc/ernest/ + datacenter-store: depends_on: - config-store environment: ERNEST_CRYPTO_KEY: CRYPTO_KEY_TEMPLATE NATS_URI: nats://nats:4222 - group-store: - image: ernestio/group-store:2.2.0 + image: ernestio/datacenter-store:3.0.0 links: - nats + definition-mapper: depends_on: - config-store environment: ERNEST_CRYPTO_KEY: CRYPTO_KEY_TEMPLATE NATS_URI: nats://nats:4222 - logger: - image: ernestio/logger:2.2.0 - ports: - - 22001:22001 - volumes: - - ./logs/:/var/logs/ - - ./config/:/etc/ernest/ + image: ernestio/definition-mapper:3.0.0 links: - nats + - postgres + logger: depends_on: - config-store environment: @@ -115,75 +107,83 @@ services: ERNEST_LOG_FILE: /var/logs/ernest.log JWT_SECRET: GENERATEDJWTSECRET NATS_URI: nats://nats:4222 - monit: - image: ernestio/monit:2.2.0 - ports: - - 22000:22000 + image: ernestio/logger:3.0.0 links: - nats + ports: + - 22001:22001 + volumes: + - ./logs/:/var/logs/ + - ./config/:/etc/ernest/ + monit: depends_on: - config-store environment: ERNEST_CRYPTO_KEY: CRYPTO_KEY_TEMPLATE JWT_SECRET: GENERATEDJWTSECRET NATS_URI: nats://nats:4222 + image: ernestio/monit:3.0.0 + links: + - nats + ports: + - 22000:22000 nats: image: nats ports: - 4222:4222 nginx: image: nginx + links: + - api-gateway:api-gateway + - monit:monit + - logger:logger ports: - 443:443 volumes: - ./config/nginx/ernest.local:/etc/nginx/conf.d/default.conf - ./config/nginx/ernest.key:/etc/nginx/conf.d/ernest.key - ./config/nginx/ernest.crt:/etc/nginx/conf.d/ernest.crt - links: - - api-gateway:api-gateway - - monit:monit - - logger:logger postgres: + environment: + DB_NAME: users,projects,environments,usage,authorizations image: r3labs/postgres volumes: - ./postgres/data:/var/lib/postgresql/data - environment: - DB_NAME: users,groups,datacenters,services,usage scheduler: - image: ernestio/scheduler:2.2.0 - links: - - nats - - postgres depends_on: - config-store environment: ERNEST_CRYPTO_KEY: CRYPTO_KEY_TEMPLATE NATS_URI: nats://nats:4222 - service-store: - image: ernestio/service-store:2.2.0 + image: ernestio/scheduler:3.0.0 links: - nats + - postgres + service-store: depends_on: - config-store environment: ERNEST_CRYPTO_KEY: CRYPTO_KEY_TEMPLATE NATS_URI: nats://nats:4222 - usage-store: - image: ernestio/usage-store:2.2.0 + image: ernestio/service-store:3.0.0 links: - nats + usage-store: depends_on: - config-store environment: ERNEST_CRYPTO_KEY: CRYPTO_KEY_TEMPLATE NATS_URI: nats://nats:4222 - user-store: - image: ernestio/user-store:2.2.0 + image: ernestio/usage-store:3.0.0 links: - nats + user-store: depends_on: - config-store environment: ERNEST_CRYPTO_KEY: CRYPTO_KEY_TEMPLATE NATS_URI: nats://nats:4222 + image: ernestio/user-store:3.0.0 + links: + - nats networks: {}