|
| 1 | +name: "metis" |
| 2 | +container_image: "registry.runnable.com/runnable/{{ name }}" |
| 3 | +container_tag: "{{ git_branch }}" |
| 4 | +repo: "git@github.com:CodeNow/astral.git" |
| 5 | +node_version: "4.2.1" |
| 6 | +npm_version: "2.8.3" |
| 7 | + |
| 8 | +# Overrides the start command in the builder role |
| 9 | +npm_start_command: "run metis-start" |
| 10 | + |
| 11 | +# Not actually needed, just allows container-kill-start to work |
| 12 | +hosted_ports: ["3000"] |
| 13 | + |
| 14 | +# Needed for the UserData script in shiva |
| 15 | +redis_host: "{{ hostvars[groups['redis'][0]]['ansible_default_ipv4']['address'] }}" |
| 16 | +redis_port: 6379 |
| 17 | + |
| 18 | +# container settings |
| 19 | +container_envs: > |
| 20 | + -e DATADOG_HOST={{ datadog_host }} |
| 21 | + -e DATADOG_PORT={{ datadog_port }} |
| 22 | + -e RABBITMQ_HOSTNAME={{ rabbit_host | default(hostvars[groups['rabbitmq'][0]]['ansible_default_ipv4']['address']) }} |
| 23 | + -e RABBITMQ_PASSWORD={{ rabbit_password }} |
| 24 | + -e RABBITMQ_PORT={{ rabbit_port }} |
| 25 | + -e RABBITMQ_USERNAME={{ rabbit_username }} |
| 26 | + -e POSTGRES_CONNECT_STRING=postgres://{{ pg_user }}:{{ pg_pass }}@{{ pg_host }}/{{ pg_database }} |
| 27 | + -e AWS_ACCESS_KEY_ID={{ aws_access_key_id }} |
| 28 | + -e AWS_SECRET_ACCESS_KEY={{ aws_secret_access_key }} |
| 29 | + -e NODE_ENV={{ node_env }} |
| 30 | + -e REDIS_HOST={{ redis_host }} |
| 31 | + -e REDIS_PORT={{ redis_port }} |
| 32 | + -e REDIS_IPADDRESS={{ redis_host }} |
| 33 | + -e REGISTRY_HOST={{ registry_host }} |
| 34 | + -e ROLLBAR_KEY={{ shiva_rollbar_key }} |
| 35 | + -e DOCKER_PORT={{ docker_port }} |
| 36 | + -e SWARM_TOKEN={{ swarm_token }} |
| 37 | + --hostname={{ name }} |
| 38 | +
|
| 39 | +container_run_opts: "-d -P {{container_envs}}" |
0 commit comments