networks: investbrain-network: driver: bridge services: app: image: investbrainapp/investbrain:latest container_name: investbrain-app restart: unless-stopped tty: true ports: - 8000:80 environment: # You can either use these properties OR an .env file. Do not use both! APP_URL: "http://localhost:8000" DB_CONNECTION: pgsql DB_HOST: investbrain-pgsql DB_PORT: 5432 DB_DATABASE: investbrain DB_USERNAME: investbrain DB_PASSWORD: investbrain SESSION_DRIVER: redis QUEUE_CONNECTION: redis CACHE_STORE: redis REDIS_HOST: investbrain-redis volumes: - investbrain-storage:/var/app/storage # You can use a volume... # - /path/to/storage:/var/app/storage:delegated # ...or you can use a path on host depends_on: - pgsql - redis networks: - investbrain-network redis: image: redis:alpine container_name: investbrain-redis restart: unless-stopped tty: true command: - --loglevel warning volumes: - investbrain-redis:/data networks: - investbrain-network pgsql: image: postgres:15-alpine container_name: investbrain-pgsql restart: unless-stopped ports: - "5432:5432" environment: POSTGRES_DB: ${DB_DATABASE:-investbrain} POSTGRES_USER: ${DB_USERNAME:-investbrain} POSTGRES_PASSWORD: ${DB_PASSWORD:-investbrain} command: postgres -c log_min_messages=error volumes: - investbrain-pgsql:/var/lib/postgresql/data networks: - investbrain-network volumes: investbrain-storage: investbrain-redis: investbrain-pgsql: