-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.apache-node.yml
43 lines (40 loc) · 1.31 KB
/
docker-compose.apache-node.yml
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
version: '3.8'
services:
ApacheServer2:
image: httpd:2.4.52
depends_on:
- node-app
volumes:
- type: bind
source: apache-setup/insolito-httpd.conf
target: /usr/local/apache2/conf/httpd.conf
read_only: true
- type: bind
source: apache-setup/neo4j-reverse-proxy.conf
target: /usr/local/apache2/conf/extra/neo4j-reverse-proxy.conf
read_only: true
ports:
- 8080:80
node-app:
build:
context: .
dockerfile: Dockerfile # Ensure the path to the Dockerfile is correct
# image: node:20
volumes:
# - ./REST/static:/usr/src/app/REST/static # Mounting bundled files here
# - ./InSoLiToAPI:/usr/src/app/InSoLiToAPI
- /usr/src/app/node_modules # Use a named volume for node_modules to avoid conflicts
ports:
- "3000:3000"
environment:
NODE_ENV: production
# image: node:20
# working_dir: /usr/src/app/InSoLiToAPI
# volumes:
# - ./REST/static:/usr/src/app/REST/static # Mounting bundled files here
# - ./InSoLiToAPI:/usr/src/app/InSoLiToAPI
# command: bash -c "npm install express webpack webpack-cli webpack-dev-middleware html-webpack-plugin && npm run build && node server.js"
# ports:
# - "3000:3000"
# environment:
# NODE_ENV: production