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:
|
2025-01-30 19:00:55 -06:00
|
|
|
- 8000:80
|
|
|
|
|
environment: # You can either use these properties OR an .env file. Do not use both!
|
2025-01-26 23:02:40 -06:00
|
|
|
APP_URL: "http://localhost:8000"
|
2025-07-11 22:13:16 -05:00
|
|
|
DB_CONNECTION: pgsql
|
|
|
|
|
DB_HOST: investbrain-pgsql
|
|
|
|
|
DB_PORT: 5432
|
2025-01-30 19:00:55 -06:00
|
|
|
DB_DATABASE: investbrain
|
|
|
|
|
DB_USERNAME: investbrain
|
|
|
|
|
DB_PASSWORD: investbrain
|
2025-01-26 23:02:40 -06:00
|
|
|
SESSION_DRIVER: redis
|
|
|
|
|
QUEUE_CONNECTION: redis
|
|
|
|
|
CACHE_STORE: redis
|
|
|
|
|
REDIS_HOST: investbrain-redis
|
2025-01-26 11:20:52 -06:00
|
|
|
volumes:
|
2025-01-30 19:00:55 -06:00
|
|
|
- investbrain-storage:/var/app/storage # You can use a volume...
|
2025-03-06 18:35:57 -06:00
|
|
|
# - /path/to/storage:/var/app/storage:delegated # ...or you can use a path on host
|
2024-09-04 17:48:40 -05:00
|
|
|
depends_on:
|
2025-07-11 22:13:16 -05:00
|
|
|
- pgsql
|
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
|
2025-02-01 10:52:15 -06:00
|
|
|
command:
|
|
|
|
|
- --loglevel warning
|
2024-12-16 21:33:45 -06:00
|
|
|
volumes:
|
|
|
|
|
- investbrain-redis:/data
|
2025-02-01 10:52:15 -06:00
|
|
|
networks:
|
|
|
|
|
- investbrain-network
|
2025-07-11 22:13:16 -05:00
|
|
|
pgsql:
|
|
|
|
|
image: postgres:15-alpine
|
|
|
|
|
container_name: investbrain-pgsql
|
2024-09-04 17:48:40 -05:00
|
|
|
restart: unless-stopped
|
2025-07-11 22:13:16 -05:00
|
|
|
ports:
|
|
|
|
|
- "5432:5432"
|
2024-09-04 17:48:40 -05:00
|
|
|
environment:
|
2025-07-11 22:13:16 -05:00
|
|
|
POSTGRES_DB: ${DB_DATABASE:-investbrain}
|
|
|
|
|
POSTGRES_USER: ${DB_USERNAME:-investbrain}
|
|
|
|
|
POSTGRES_PASSWORD: ${DB_PASSWORD:-investbrain}
|
|
|
|
|
command: postgres -c log_min_messages=error
|
2024-09-04 17:48:40 -05:00
|
|
|
volumes:
|
2025-07-11 22:13:16 -05:00
|
|
|
- investbrain-pgsql:/var/lib/postgresql/data
|
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
|
|
|
volumes:
|
2025-01-30 19:00:55 -06:00
|
|
|
investbrain-storage:
|
2024-12-16 21:33:45 -06:00
|
|
|
investbrain-redis:
|
2025-07-11 22:13:16 -05:00
|
|
|
investbrain-pgsql:
|