-
Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
37 lines (36 loc) · 924 Bytes
/
docker-compose.dev.yml
File metadata and controls
37 lines (36 loc) · 924 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
name: faved-dev
services:
apache-php:
build:
context: .
dockerfile: Dockerfile.dev
restart: always
working_dir: /var/www/html
volumes:
- temp-data:/tmp/
- .:/var/www/html:delegated
- ./apache-conf:/etc/apache2/sites-enabled:delegated
- ./certbot-conf:/etc/letsencrypt:delegated
ports:
- "${BACKEND_PORT:-8000}:80"
node:
image: node:24
restart: always
working_dir: /var/www/html
volumes:
- ./frontend:/var/www/html:delegated
- ./public/dist/:/var/www/html/dist/:delegated
ports:
- "${FRONTEND_PORT:-5173}:5173"
environment:
- "BACKEND_PORT=${BACKEND_PORT:-8000}"
command: sh -c "npm install && npm run dev -- --host"
composer:
image: composer/composer
restart: "no"
working_dir: /app
volumes:
- .:/app:delegated
command: ["composer", "install"]
volumes:
temp-data: