services: nginx: build: ./nginx ports: - "80:80" depends_on: - frontend - backend restart: unless-stopped frontend: build: ./frontend restart: unless-stopped backend: build: ./backend env_file: .env depends_on: - db - cache restart: unless-stopped db: image: postgres:16-alpine environment: POSTGRES_USER: ${POSTGRES_USER} POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} POSTGRES_DB: ${POSTGRES_DB} volumes: - postgres_data:/var/lib/postgresql/data restart: unless-stopped cache: image: redis:7-alpine volumes: - redis_data:/data restart: unless-stopped volumes: postgres_data: redis_data: