-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
54 lines (51 loc) · 1.26 KB
/
docker-compose.yaml
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
53
54
services:
nginx:
image: "nginx:stable-alpine"
ports:
- "8000:80"
volumes:
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf:ro
- ./src:/var/www/laravel
depends_on:
- postgresql
- php
- node
php:
build:
context: docker/dockerfiles
dockerfile: php.Dockerfile
volumes:
- ./docker/php/conf.d/xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
- ./docker/php/conf.d/error_reporting.ini:/usr/local/etc/php/conf.d/error_reporting.ini
- ./src:/var/www/laravel
environment:
PHP_IDE_CONFIG: "serverName=Docker"
postgresql:
image: postgres:latest
ports:
- "5432:5432"
env_file:
- env/postgres.env
volumes:
- db_data:/var/lib/postgresql/data
node:
image: node:18
working_dir: /var/www/laravel
volumes:
- ./src:/var/www/laravel
command: "sh -c 'npm install && npm run build'"
composer:
build:
context: docker/dockerfiles
dockerfile: composer.Dockerfile
volumes:
- ./src:/var/www/laravel
artisan:
build:
context: docker/dockerfiles
dockerfile: php.Dockerfile
volumes:
- ./src:/var/www/laravel
entrypoint: ["php", "/var/www/laravel/artisan"]
volumes:
db_data: