-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (40 loc) · 931 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (40 loc) · 931 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
services:
nginx:
build:
args:
project_dir: ${APP_PATH}
context: .
dockerfile: ./docker/dockerfiles/nginx/Dockerfile
target: dev
container_name: ${COMPOSE_PROJECT_NAME}-nginx
ports:
- "${APP_WEB_PORT}:80"
volumes:
- ./:${APP_PATH}
depends_on:
- php
php:
build:
args:
user: ${DOCKER_USER}
uid: 1000
target: dev
context: .
dockerfile: ./docker/dockerfiles/php/Dockerfile
target: dev
container_name: ${COMPOSE_PROJECT_NAME}-php
volumes:
- ./:/var/www/app
environment:
XDEBUG_MODE: ${XDEBUG_MODE:-off}
npm:
image: node:23.6.1-alpine3.20
container_name: ${COMPOSE_PROJECT_NAME}-npm
volumes:
- ./:${APP_PATH}:cached
- ./.env:${APP_PATH}/.env
working_dir: ${APP_PATH}
profiles: ["npm"]
entrypoint: ['npm']
ports:
- "${APP_VITE_PORT}:5173"