-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
28 lines (26 loc) · 823 Bytes
/
docker-compose.yml
File metadata and controls
28 lines (26 loc) · 823 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
version: '3.8'
services:
frontend:
image: node:14 # You can adjust the Node.js version if needed
# Alternatively, use the official Node.js image with customization in local frontend/Dockerfile
# build:
# context: ./frontend
# dockerfile: Dockerfile
working_dir: /app/frontend
volumes:
- ./frontend:/app/frontend
ports:
- "8080:8080"
command: npm run serve
backend:
image: php:8.2-cli # Using PHP CLI image # You can adjust the PHP version if needed
# Alternatively, use the official PHP image with customization from local backend/Dockerfile
# build:
# context: ./backend
# dockerfile: Dockerfile
working_dir: /app/backend
volumes:
- ./backend:/app/backend
ports:
- "8000:8000"
command: php -S 0.0.0.0:8000 -t public