video-sub/.devcontainer/service/docker-compose.yml

50 lines
1.1 KiB
YAML

version: '3'
networks:
laravel:
services:
app:
image: php:8.1-fpm
environment:
DB_CONNECTION: pgsql
DB_HOST: postgres
DB_PORT: 5432
DB_DATABASE: video_sub
DB_USERNAME: postgres
DB_PASSWORD: postgres
MAIL_HOST: mailhog
depends_on:
- postgres
- redis
- mailhog
links:
- postgres
- redis
- mailhog
postgres:
image: postgres:14-alpine
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
- POSTGRES_DB=video_sub
networks:
- laravel
redis:
image: redis:latest
ports:
- 6379:6379
mailhog:
image: mailhog/mailhog:latest
ports:
- "1025:1025"
- "8025:8025"
networks:
- laravel
volumes:
postgres_data: