Files
robot-shop/docker-compose.yaml

120 lines
2.4 KiB
YAML
Raw Normal View History

2018-01-10 16:31:49 +00:00
version: '3'
services:
mongodb:
build:
context: mongo
2018-02-01 12:42:25 +00:00
image: ${REPO}/rs-mongodb:${TAG}
2018-01-10 16:31:49 +00:00
networks:
- robot-shop
redis:
2018-01-19 17:24:49 +00:00
image: redis:4.0.6
2018-01-10 16:31:49 +00:00
networks:
- robot-shop
2018-01-26 16:01:39 +00:00
rabbitmq:
2018-01-31 10:11:58 +00:00
image: rabbitmq:3.7-management-alpine
2018-01-26 16:01:39 +00:00
networks:
- robot-shop
2018-01-10 16:31:49 +00:00
catalogue:
build:
context: catalogue
2018-02-01 12:42:25 +00:00
image: ${REPO}/rs-catalogue:${TAG}
2018-01-10 16:31:49 +00:00
depends_on:
- mongodb
networks:
- robot-shop
user:
build:
context: user
2018-02-01 12:42:25 +00:00
image: ${REPO}/rs-user:${TAG}
2018-01-10 16:31:49 +00:00
depends_on:
- mongodb
- redis
networks:
- robot-shop
cart:
build:
context: cart
2018-02-01 12:42:25 +00:00
image: ${REPO}/rs-cart:${TAG}
2018-01-10 16:31:49 +00:00
depends_on:
- redis
networks:
- robot-shop
2018-01-12 17:26:25 +00:00
mysql:
build:
2018-08-21 14:47:19 +01:00
context: mysql
image: ${REPO}/rs-mysql-db:${TAG}
2018-08-24 14:51:14 +01:00
cap_add:
- NET_ADMIN
2018-01-12 17:26:25 +00:00
networks:
- robot-shop
2018-01-10 16:31:49 +00:00
shipping:
build:
2018-08-21 14:47:19 +01:00
context: shipping
2018-02-01 12:42:25 +00:00
image: ${REPO}/rs-shipping:${TAG}
2018-01-12 17:26:25 +00:00
depends_on:
- mysql
2018-01-10 16:31:49 +00:00
networks:
- robot-shop
2020-04-10 01:20:20 +02:00
healthcheck:
test: ["CMD", "curl", "-H", "X-INSTANA-SYNTHETIC: 1", "-f", "http://localhost:8080/health"]
interval: 1s
timeout: 10s
retries: 3
2018-08-21 14:47:19 +01:00
ratings:
build:
context: ratings
image: ${REPO}/rs-ratings:${TAG}
environment:
APP_ENV: prod
2018-08-21 14:47:19 +01:00
networks:
- robot-shop
depends_on:
- mysql
healthcheck:
test: ["CMD", "curl", "-H", "X-INSTANA-SYNTHETIC: 1", "-f", "http://localhost/_health"]
interval: 1s
timeout: 10s
retries: 3
2018-01-25 17:42:38 +00:00
payment:
build:
context: payment
2018-02-01 12:42:25 +00:00
image: ${REPO}/rs-payment:${TAG}
2018-01-26 16:01:39 +00:00
depends_on:
- rabbitmq
2018-01-25 17:42:38 +00:00
networks:
- robot-shop
2018-12-18 12:51:11 +00:00
# Uncomment to change payment gateway
#environment:
#PAYMENT_GATEWAY: "https://www.worldpay.com"
2018-01-29 17:40:12 +00:00
dispatch:
build:
context: dispatch
2018-02-01 12:42:25 +00:00
image: ${REPO}/rs-dispatch:${TAG}
2018-01-29 17:40:12 +00:00
depends_on:
- rabbitmq
networks:
- robot-shop
2018-01-10 16:31:49 +00:00
web:
build:
context: web
2018-02-01 12:42:25 +00:00
image: ${REPO}/rs-web:${TAG}
2018-01-10 16:31:49 +00:00
depends_on:
- catalogue
- user
2018-01-16 17:46:34 +00:00
- shipping
2018-01-25 17:42:38 +00:00
- payment
2018-01-10 16:31:49 +00:00
ports:
- "8080:8080"
networks:
- robot-shop
2020-10-21 12:53:31 +01:00
#environment:
# NGINX_INJECT_FAKE_IP: "1"
# Uncomment to enable Instana EUM
2019-04-09 12:41:31 +01:00
# INSTANA_EUM_KEY: <your eum key>
# INSTANA_EUM_REPORTING_URL: https://eum-us-west-2.instana.io
# INSTANA_EUM_REPORTING_URL: https://eum-eu-west-1.instana.io
2018-01-10 16:31:49 +00:00
networks:
robot-shop: