2024-09-04 17:48:40 -05:00
|
|
|
networks:
|
2024-09-05 18:05:15 -05:00
|
|
|
investbrain-network:
|
2024-09-04 17:48:40 -05:00
|
|
|
driver: bridge
|
|
|
|
|
services:
|
|
|
|
|
app:
|
2024-12-16 21:33:45 -06:00
|
|
|
image: investbrainapp/investbrain:latest
|
2024-09-04 17:48:40 -05:00
|
|
|
container_name: investbrain-app
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
tty: true
|
2025-01-25 18:09:02 -06:00
|
|
|
ports:
|
|
|
|
|
- "${APP_PORT:-8000}:80"
|
2025-01-26 21:38:59 -06:00
|
|
|
environment:
|
2025-01-26 23:02:40 -06:00
|
|
|
APP_KEY: "" # Generate a key using `openssl rand -base64 32`
|
|
|
|
|
APP_URL: "http://localhost:8000"
|
|
|
|
|
ASSET_URL: "http://localhost:8000"
|
|
|
|
|
DB_CONNECTION: mysql
|
|
|
|
|
DB_HOST: investbrain-mysql
|
|
|
|
|
DB_PORT: 3306
|
|
|
|
|
DB_DATABASE: ${DB_DATABASE:-investbrain}
|
|
|
|
|
DB_USERNAME: ${DB_USERNAME:-investbrain}
|
|
|
|
|
DB_PASSWORD: ${DB_PASSWORD:-investbrain}
|
|
|
|
|
SESSION_DRIVER: redis
|
|
|
|
|
QUEUE_CONNECTION: redis
|
|
|
|
|
CACHE_STORE: redis
|
|
|
|
|
REDIS_HOST: investbrain-redis
|
2025-01-26 11:20:52 -06:00
|
|
|
volumes:
|
|
|
|
|
- ./storage:/var/www/app/storage:delegated
|
2024-09-04 17:48:40 -05:00
|
|
|
depends_on:
|
|
|
|
|
- mysql
|
2024-12-16 21:33:45 -06:00
|
|
|
- redis
|
2024-09-04 17:48:40 -05:00
|
|
|
networks:
|
2024-09-05 18:05:15 -05:00
|
|
|
- investbrain-network
|
2024-12-16 21:33:45 -06:00
|
|
|
redis:
|
|
|
|
|
image: redis:alpine
|
|
|
|
|
container_name: investbrain-redis
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
tty: true
|
|
|
|
|
networks:
|
|
|
|
|
- investbrain-network
|
|
|
|
|
volumes:
|
|
|
|
|
- investbrain-redis:/data
|
2024-09-04 17:48:40 -05:00
|
|
|
mysql:
|
2024-09-18 22:56:00 -05:00
|
|
|
image: mysql:8.0
|
2024-09-04 17:48:40 -05:00
|
|
|
container_name: investbrain-mysql
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
environment:
|
2024-09-04 18:54:35 -05:00
|
|
|
MYSQL_DATABASE: ${DB_DATABASE:-investbrain}
|
|
|
|
|
MYSQL_USER: ${DB_USERNAME:-investbrain}
|
|
|
|
|
MYSQL_PASSWORD: ${DB_PASSWORD:-investbrain}
|
2024-09-08 20:04:33 -05:00
|
|
|
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD:-investbrain}
|
2025-01-25 22:52:44 -06:00
|
|
|
command:
|
|
|
|
|
- --cte-max-recursion-depth=25000
|
2024-09-04 17:48:40 -05:00
|
|
|
volumes:
|
|
|
|
|
- investbrain-mysql:/var/lib/mysql
|
|
|
|
|
networks:
|
2024-09-05 18:05:15 -05:00
|
|
|
- investbrain-network
|
2024-09-04 17:48:40 -05:00
|
|
|
volumes:
|
2024-12-16 21:33:45 -06:00
|
|
|
investbrain-redis:
|
2024-09-04 17:48:40 -05:00
|
|
|
investbrain-mysql:
|