-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml.tbd
More file actions
31 lines (29 loc) · 954 Bytes
/
docker-compose.yml.tbd
File metadata and controls
31 lines (29 loc) · 954 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
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-apache # 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
- ./backend/apache-config/apache.conf:/etc/apache2/sites-available/000-default.conf
ports:
- "8000:80"
environment:
- APACHE_DOCUMENT_ROOT=/var/www/html/public
command: [ "apache2-foreground" ]