Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3'
- services:
- traefik:
- image: traefik
- command: -c /dev/null --web --docker --docker.domain=docker.localhost --logLevel=DEBUG
- env_file: .env
- labels:
- - "traefik.enable=false"
- ports:
- - "${HTTP_PORT:-80}:80"
- - "${HTTPS_PORT:-443}:443"
- - "${ADMIN_PORT:-8080}:8080"
- volumes:
- - /var/run/docker.sock:/var/run/docker.sock
- backend:
- build: ./backend
- image: rotarran-backend
- env_file: .env
- labels:
- - "traefik.backend=backend"
- - "traefik.frontend.rule=PathPrefixStrip:/api"
- tty: true
- stdin_open: true
- volumes:
- - ./backend/code:/code
- frontend:
- build: ./frontend
- image: rotarran-frontend
- env_file: .env
- labels:
- - "traefik.backend=frontend"
- - "traefik.frontend.rule=PathPrefix:/"
- tty: true
- volumes:
- - ./frontend/code:/code
- postgres:
- image: postgres:9.4
- restart: always
- env_file: .env
- labels:
- - "traefik.enable=false"
- volumes:
- - postgres-data:/var/lib/postgresql/data
- - ./postgres:/docker-entrypoint-initdb.d
- environment:
- - POSTGRES_PASSWORD=rotarran
- - POSTGRES_USER=rotarran
- - POSTGRES_DB=rotarran
- - PGPASSWORD=rotarran
- redis:
- image: redis:3.0
- restart: always
- volumes:
- - redis-data:/data
- labels:
- - "traefik.enable=false"
- sentry:
- image: sentry:8.18.0
- env_file: .env
- volumes:
- - sentry-data:/var/lib/sentry/files
- labels:
- - "traefik.enable=false"
- ports:
- - "${SENTRY_FRONTEND_PORT:-9000}:9000"
- sentry_worker:
- image: sentry:8.18.0
- command: sentry run worker
- env_file: .env
- volumes:
- - sentry-data:/var/lib/sentry/files
- labels:
- - "traefik.enable=false"
- volumes:
- postgres-data:
- sentry-data:
- redis-data:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement