Files
robot-shop/docker-compose.yaml

173 lines
3.7 KiB
YAML
Raw Permalink 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
logging: &logging
driver: "json-file"
options:
max-size: "25m"
max-file: "2"
2018-01-10 16:31:49 +00:00
redis:
2021-08-31 16:15:36 +01:00
image: redis:6.2-alpine
2018-01-10 16:31:49 +00:00
networks:
- robot-shop
logging:
<<: *logging
2018-01-26 16:01:39 +00:00
rabbitmq:
2021-08-31 16:15:36 +01:00
image: rabbitmq:3.8-management-alpine
2018-01-26 16:01:39 +00:00
networks:
- robot-shop
logging:
<<: *logging
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
healthcheck:
test: [ "CMD", "curl", "-H", "X-INSTANA-SYNTHETIC: 1", "-f", "http://localhost:8080/health" ]
2021-06-25 11:30:16 +01:00
interval: 10s
timeout: 10s
retries: 3
logging:
<<: *logging
2018-01-10 16:31:49 +00:00
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
healthcheck:
test: [ "CMD", "curl", "-H", "X-INSTANA-SYNTHETIC: 1", "-f", "http://localhost:8080/health" ]
2021-06-25 11:30:16 +01:00
interval: 10s
timeout: 10s
retries: 3
logging:
<<: *logging
2018-01-10 16:31:49 +00:00
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
healthcheck:
test: [ "CMD", "curl", "-H", "X-INSTANA-SYNTHETIC: 1", "-f", "http://localhost:8080/health" ]
2021-06-25 11:30:16 +01:00
interval: 10s
timeout: 10s
retries: 3
logging:
<<: *logging
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
logging:
<<: *logging
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"]
2021-06-25 11:30:16 +01:00
interval: 10s
2020-04-10 01:20:20 +02:00
timeout: 10s
retries: 3
logging:
<<: *logging
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"]
2021-06-25 11:30:16 +01:00
interval: 10s
timeout: 10s
retries: 3
logging:
<<: *logging
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
healthcheck:
test: ["CMD", "curl", "-H", "X-INSTANA-SYNTHETIC: 1", "-f", "http://localhost:8080/health"]
2021-06-25 11:30:16 +01:00
interval: 10s
timeout: 10s
retries: 3
2018-12-18 12:51:11 +00:00
# Uncomment to change payment gateway
#environment:
#PAYMENT_GATEWAY: "https://www.worldpay.com"
logging:
<<: *logging
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
logging:
<<: *logging
2018-01-10 16:31:49 +00:00
web:
build:
context: web
2021-06-25 11:30:16 +01:00
args:
# agent key to download tracing libs
KEY: ${INSTANA_AGENT_KEY}
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
healthcheck:
test: [ "CMD", "curl", "-H", "X-INSTANA-SYNTHETIC: 1", "-f", "http://localhost:8080/" ]
2021-06-25 11:30:16 +01:00
interval: 10s
timeout: 10s
retries: 3
# Uncomment to enable Instana EUM
# environment:
2019-04-09 12:41:31 +01:00
# INSTANA_EUM_KEY: <your eum key>
2021-06-07 14:56:52 +01:00
# INSTANA_EUM_REPORTING_URL: <your reporting url>
logging:
<<: *logging
2018-01-10 16:31:49 +00:00
networks:
robot-shop: