Advertisement
Guest User

Untitled

a guest
Mar 26th, 2021
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.18 KB | None | 0 0
  1. version: '2.4'
  2.  
  3. services:
  4.   web:
  5.     build: ./app
  6.     container_name: web
  7.     restart: always
  8.     volumes:
  9.      - ./app/:/app
  10.     expose:
  11.      - 8000
  12.     env_file:
  13.      - .env.dev
  14.     depends_on:
  15.      - postgres
  16.     links:
  17.      - postgres:postgres
  18.  
  19.   postgres:
  20.     image: postgres
  21.     restart: always
  22.     container_name: postgres
  23.     volumes:
  24.      - postgres_data:/var/lib/postgresql/data/
  25.     environment:
  26.      - POSTGRES_USER=postgres
  27.       - POSTGRES_PASSWORD=test
  28.       - POSTGRES_DB=postgres
  29.      
  30.   nginx:
  31.       build: ./nginx
  32.       restart: always
  33.       container_name: nginx
  34.       ports:
  35.        - 80:80
  36.       depends_on:
  37.        - web
  38.        
  39.   grafana:
  40.     image: grafana/grafana
  41.     restart: always
  42.     expose:
  43.      - 3000
  44.     ports:
  45.      - 3000:3000
  46.     environment:
  47.       GF_SERVER_ROOT_URL: http://grafana:3000
  48.       GF_SECURITY_ADMIN_PASSWORD: PINLOX!@#
  49.    
  50.   clickhouse:
  51.     image: yandex/clickhouse-server
  52.     restart: always
  53.     expose:
  54.      - 8123
  55.       - 9000
  56.     ports:
  57.      - 9000:9000
  58.       - 8123:8123
  59.     volumes:
  60.      - ./clickhouse-config.xml:/etc/clickhouse-server/config.xml
  61.  
  62. volumes:
  63.   postgres_data:
  64.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement