Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
2.1 kB
2
Indexable
Never
version: "3.7"

services:
  php:
    container_name: bitici-bot-php74
    build:
      context: .
      dockerfile: ./Dockerfile.development
    volumes:
      - ./logs/php:/var/log/php
      - ./logs/laravel:/usr/share/nginx/html/storage/logs
      - ./source:/usr/share/nginx/html
      - ./conf/development/php.ini:/usr/local/etc/php/php.ini
      - ./conf/docker.conf:/usr/local/etc/php-fpm.d/docker.conf
    networks:
      - bridge

  bitici-bot-development:
    container_name: bitici-bot-development
    image: nginx:latest
    ports:
      - 80:80
    volumes:
      - ./logs/nginx:/var/log/nginx
      - ./source:/usr/share/nginx/html
      - ./conf/nginx.conf:/etc/nginx/nginx.conf
      - ./conf/development/default.conf:/etc/nginx/conf.d/default.conf
    depends_on:
      - php
    networks:
      - bridge

  bitici-bot-cron:
    container_name: bitici-bot-cron
    build:
      context: .
      dockerfile: ./Dockerfile.development
    volumes:
      - ./logs/cron:/var/log/cron
      - ./logs/worker:/var/log/worker
      - ./source:/usr/share/nginx/html
      - ./conf/cron/crontab:/crontab
      - ./conf/cron/supervisord.conf:/etc/supervisor/conf.d/supervisord.conf
    command: sh -c "/usr/bin/crontab /crontab && /usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf -n"
    networks:
      - bridge

#   queue-worker:
#     container_name: bitici-bot-queue-worker
#     build:
#       context: .
#       dockerfile: ./Dockerfile.development
#     volumes:
#       - ./logs/worker:/var/log/worker
#       - ./source:/usr/share/nginx/html
#       - ./conf/development/php.ini:/usr/local/etc/php/php.ini
#     command: sh -c "php artisan queue:work"
#     depends_on:
#       - php
#     networks:
#       - bridge

  redis:
    image: redis
    command: /bin/sh -c "redis-server --requirepass 3ujZT7P21P5b"
    volumes:
      - redis:/var/lib/redis
      - redis-config:/usr/local/etc/redis/redis.conf
    ports:
      - 6379:6379
    networks:
      - bridge

volumes:
  redis:
  redis-config:

networks:
  bridge:
    driver: bridge
Leave a Comment