generated from kemboi22/laravel-inertia-starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (47 loc) · 968 Bytes
/
docker-compose.yml
File metadata and controls
52 lines (47 loc) · 968 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
version: '3.8'
services:
app:
image: laravelsail/php83-composer:latest
container_name: laravel_app
working_dir: /var/www/html
volumes:
- .:/var/www/html
ports:
- "8080:8080"
environment:
- APP_ENV=local
- APP_DEBUG=true
command: php artisan serve --host=0.0.0.0 --port=8080
depends_on:
- postgres
networks:
- laravel
postgres:
image: postgres:15
container_name: laravel_postgres
environment:
POSTGRES_DB: laravel
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5433:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- laravel
vite:
image: node:20
container_name: laravel_vite
working_dir: /app
volumes:
- .:/app
ports:
- "5100:5100"
command: npm run dev -- --host
networks:
- laravel
volumes:
postgres_data:
networks:
laravel:
driver: bridge