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-25 20:13:19 -06:00
|
|
|
env_file: .env
|
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 20:13:19 -06:00
|
|
|
command: --cte-max-recursion-depth=1000
|
2024-09-04 17:48:40 -05:00
|
|
|
volumes:
|
2025-01-25 20:13:19 -06:00
|
|
|
# - ./docker/mysql.conf:/etc/mysql/conf.d/my.cnf
|
2024-09-04 17:48:40 -05:00
|
|
|
- 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:
|