You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
121 lines
2.9 KiB
121 lines
2.9 KiB
# For more information: https://laravel.com/docs/sail
|
|
version: '3'
|
|
services:
|
|
rabbitmq:
|
|
image: "rabbitmq:3-management"
|
|
ports:
|
|
- 5672:5672
|
|
- 15672:15672
|
|
environment:
|
|
RABBITMQ_ERLANG_COOKIE: "SWQOKODSQALRPCLNMEQG"
|
|
RABBITMQ_DEFAULT_USER: "root"
|
|
RABBITMQ_DEFAULT_PASS: "root"
|
|
RABBITMQ_DEFAULT_VHOST: "/"
|
|
networks:
|
|
- hi-user
|
|
volumes:
|
|
- ./definitions.json:/etc/rabbitmq/definitions.json
|
|
depends_on:
|
|
- laravel.test
|
|
minio:
|
|
image: minio/minio
|
|
command: server /data
|
|
ports:
|
|
- 9000:9000
|
|
environment:
|
|
MINIO_ACCESS_KEY: root
|
|
MINIO_SECRET_KEY: minioroot
|
|
networks:
|
|
- hi-user
|
|
depends_on:
|
|
- laravel.test
|
|
commander:
|
|
image: rediscommander/redis-commander:latest
|
|
environment:
|
|
- REDIS_HOST=redis
|
|
- REDIS_PORT=6379
|
|
- HTTP_USER=root
|
|
- HTTP_PASSWORD=root
|
|
- REDIS_PASSWORD=root
|
|
ports:
|
|
- 8081:8081
|
|
depends_on:
|
|
- redis
|
|
networks:
|
|
- hi-user
|
|
redis:
|
|
image: redis:latest
|
|
ports:
|
|
- 6379:6379
|
|
command: redis-server --requirepass root
|
|
volumes:
|
|
- redis-data:/data
|
|
networks:
|
|
- hi-user
|
|
laravel.test:
|
|
build:
|
|
context: ./vendor/laravel/sail/runtimes/8.0
|
|
dockerfile: Dockerfile
|
|
args:
|
|
WWWGROUP: '${WWWGROUP}'
|
|
image: sail-8.0/app
|
|
ports:
|
|
- '${APP_PORT:-80}:80'
|
|
container_name: "liwo-user-app"
|
|
environment:
|
|
WWWUSER: '${WWWUSER}'
|
|
LARAVEL_SAIL: 1
|
|
volumes:
|
|
- '.:/var/www/html'
|
|
networks:
|
|
- hi-user
|
|
- hi
|
|
depends_on:
|
|
- mysql
|
|
mysql:
|
|
image: 'mysql:8.0'
|
|
ports:
|
|
- '${FORWARD_DB_PORT:-3306}:3306'
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD: '${DB_PASSWORD}'
|
|
MYSQL_DATABASE: '${DB_DATABASE}'
|
|
MYSQL_USER: '${DB_USERNAME}'
|
|
MYSQL_PASSWORD: '${DB_PASSWORD}'
|
|
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
|
|
volumes:
|
|
- 'sailmysql:/var/lib/mysql'
|
|
networks:
|
|
- hi-user
|
|
healthcheck:
|
|
test: ["CMD", "mysqladmin", "ping"]
|
|
pma:
|
|
image: 'phpmyadmin:latest'
|
|
ports:
|
|
- 8080:80
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD: '${DB_PASSWORD}'
|
|
links:
|
|
- "mysql:db"
|
|
depends_on:
|
|
- mysql
|
|
networks:
|
|
- hi-user
|
|
mailhog:
|
|
image: mailhog/mailhog
|
|
logging:
|
|
driver: 'none' # disable saving logs
|
|
ports:
|
|
- 1025:1025 # smtp server
|
|
- 8025:8025 # web ui
|
|
networks:
|
|
- hi-user
|
|
networks:
|
|
hi-user:
|
|
external: false
|
|
hi:
|
|
external: true
|
|
volumes:
|
|
redis-data:
|
|
driver: local
|
|
sailmysql:
|
|
driver: local
|