SHARE
TWEET

docker-compose.yml

a guest Feb 14th, 2020 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. version: '3.7'
  2.  
  3. services:
  4.   platform:
  5.     build:
  6.       context: ../../../platform
  7.       dockerfile: Dockerfile.dev
  8.     ports:
  9.      - "8082:80"
  10.     volumes:
  11.      - ../../../platform:/app
  12.     depends_on:
  13.      - redis
  14.     networks:
  15.      - micro-network
  16.     entrypoint: /app/docker/start-dev.sh
  17.  
  18.   website:
  19.     build:
  20.       context: ../../../cabinet
  21.       dockerfile: Dockerfile.dev
  22.     ports:
  23.      - "8081:80"
  24.     volumes:
  25.      - ../../../cabinet:/app
  26.     depends_on:
  27.      - redis
  28.     networks:
  29.      - micro-network
  30.     entrypoint: /app/docker/start-dev.sh
  31.  
  32.   redis:
  33.     image: redis
  34.     command: redis-server --appendonly yes
  35.     networks:
  36.      - micro-network
  37.  
  38.   db_web:
  39.     image: mysql:5.7.25
  40.     environment:
  41.      - "MYSQL_ROOT_PASSWORD=rootpass"
  42.       - "MYSQL_DATABASE=dbname"
  43.       - "MYSQL_USER=dbuser"
  44.       - "MYSQL_PASSWORD=dbpass"
  45.     volumes:
  46.      - ./data/db_web:/var/lib/mysql
  47.     networks:
  48.      - micro-network
  49.     ports:
  50.      - "63309:3306"
  51.  
  52.   db_platform:
  53.     image: mysql:5.7.25
  54.     environment:
  55.      - "MYSQL_ROOT_PASSWORD=rootpass"
  56.       - "MYSQL_DATABASE=dbname"
  57.       - "MYSQL_USER=dbuser"
  58.       - "MYSQL_PASSWORD=dbpass"
  59.     volumes:
  60.      - ./data/db_platform:/var/lib/mysql
  61.     networks:
  62.      - micro-network
  63.     ports:
  64.      - "63308:3306"
  65.  
  66. networks:
  67.   micro-network: {}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top