-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (55 loc) · 1.36 KB
/
docker-compose.yml
File metadata and controls
58 lines (55 loc) · 1.36 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
services:
web:
image: node:24.13.0-alpine3.23
container_name: radix-web_container
read_only: true
working_dir: /app
command: [ "sh", "-c", "npm install --prefer-offline --no-audit --ignore-scripts && chown -R node:node node_modules && npm start" ]
environment:
- npm_config_proxy=${NPM_PROXY}
volumes:
- type: bind
source: .
target: /app
- type: volume
source: node-modules
target: /app/node_modules
- type: volume
target: /root
tmpfs: {}
networks:
- radix
ports:
- "3000:3000"
- "9222:9222"
proxy:
image: nginxinc/nginx-unprivileged:1.31.0-alpine3.23
container_name: radix-proxy_container
read_only: true
volumes:
- type: bind
source: ./proxy/server.dev.conf
target: /default.conf
- type: bind
source: ./proxy/run_nginx.sh
target: /run_nginx.sh
- type: bind
source: ./src/inject-env-template.js
target: /usr/share/nginx/html/inject-env.js
- type: volume
target: /etc/nginx/conf.d
tmpfs: {}
- type: volume
target: /tmp
tmpfs: {}
command: [ "/bin/sh", "-c", ". run_nginx.sh" ]
networks:
- radix
ports:
- "8080:8080"
volumes:
node-modules:
name: radix-web_node-modules
networks:
radix:
name: radix