Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
937 B
3
Indexable
Never
version: '3.8'

services:
  laravel:
    image: gitlab-docker.mogic.com/transdev/dfi/dev:latest
    volumes:
      - ./laravel:/var/www/laravel
    links:
      - laravel-db:db
      - laravel-redis:redis
    ports:
      - "127.0.0.1:80:80"
    environment:
      - VIRTUAL_HOST=transdev-laravel.development,localhost
      - VIRTUAL_PORT=5650
    networks:
      - transdev-local-docker-network

  laravel-redis:
    image: redis:latest
    networks:
      - transdev-local-docker-network

  laravel-db:
    build: ./docker/mysql/
    ports:
      - "127.0.0.1:3403:3306"
    environment:
      - MYSQL_ROOT_PASSWORD=your_root_password
      - MYSQL_USER=transdev_laravel
      - MYSQL_PASSWORD=transdev_laravel_password
      - MYSQL_DATABASE=transdev_laravel
    volumes:
      - mysql:/var/lib/mysql
    networks:
      - transdev-local-docker-network
volumes:
  mysql:

networks:
  transdev-local-docker-network:
    external: true
Leave a Comment