Advertisement
socek

Untitled

Aug 28th, 2017
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.85 KB | None | 0 0
  1. version: '3'
  2.  
  3. services:
  4.   traefik:
  5.     image: traefik
  6.     command: -c /dev/null --web --docker --docker.domain=docker.localhost --logLevel=DEBUG
  7.     env_file: .env
  8.     labels:
  9.    - "traefik.enable=false"
  10.     ports:
  11.      - "${HTTP_PORT:-80}:80"
  12.       - "${HTTPS_PORT:-443}:443"
  13.       - "${ADMIN_PORT:-8080}:8080"
  14.     volumes:
  15.      - /var/run/docker.sock:/var/run/docker.sock
  16.  
  17.   backend:
  18.     build: ./backend
  19.     image: rotarran-backend
  20.     env_file: .env
  21.     labels:
  22.    - "traefik.backend=backend"
  23.     - "traefik.frontend.rule=PathPrefixStrip:/api"
  24.     tty: true
  25.     stdin_open: true
  26.     volumes:
  27.      - ./backend/code:/code
  28.  
  29.   frontend:
  30.     build: ./frontend
  31.     image: rotarran-frontend
  32.     env_file: .env
  33.     labels:
  34.    - "traefik.backend=frontend"
  35.     - "traefik.frontend.rule=PathPrefix:/"
  36.     tty: true
  37.     volumes:
  38.      - ./frontend/code:/code
  39.  
  40.   postgres:
  41.     image: postgres:9.4
  42.     restart: always
  43.     env_file: .env
  44.     labels:
  45.      - "traefik.enable=false"
  46.     volumes:
  47.      - postgres-data:/var/lib/postgresql/data
  48.       - ./postgres:/docker-entrypoint-initdb.d
  49.     environment:
  50.      - POSTGRES_PASSWORD=rotarran
  51.       - POSTGRES_USER=rotarran
  52.       - POSTGRES_DB=rotarran
  53.       - PGPASSWORD=rotarran
  54.  
  55.   redis:
  56.     image: redis:3.0
  57.     restart: always
  58.     volumes:
  59.      - redis-data:/data
  60.     labels:
  61.      - "traefik.enable=false"
  62.  
  63.   sentry:
  64.     image: sentry:8.18.0
  65.     env_file: .env
  66.     volumes:
  67.      - sentry-data:/var/lib/sentry/files
  68.     labels:
  69.      - "traefik.enable=false"
  70.     ports:
  71.      - "${SENTRY_FRONTEND_PORT:-9000}:9000"
  72.  
  73.   sentry_worker:
  74.     image: sentry:8.18.0
  75.     command: sentry run worker
  76.     env_file: .env
  77.     volumes:
  78.      - sentry-data:/var/lib/sentry/files
  79.     labels:
  80.      - "traefik.enable=false"
  81.  
  82. volumes:
  83.   postgres-data:
  84.   sentry-data:
  85.  redis-data:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement