-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
54 lines (54 loc) · 1.03 KB
/
docker-compose.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
44
45
46
47
48
49
50
51
52
53
54
version: '3'
services:
web:
image: httpd:2.4
ports:
- 49157:80
volumes:
- ./web:/usr/local/apache2/htdocs
- ./web/httpd.conf:/usr/local/apache2/conf/httpd.conf
networks:
- api
container_name: cadquery2web_web
node:
build: ./node
ports:
- 49158:3000
depends_on:
- cadquery
volumes:
- ./logs:/logs
networks:
- cadquery
- api
container_name: cadquery2web_node
cadquery:
build: ./cadquery
ports:
- 49159:5000
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
cap_add:
- NET_BIND_SERVICE
read_only: true
tmpfs:
- /tmp:rw,noexec,nosuid
- /home/cadquery/.cache/ezdxf:rw,noexec,nosuid,uid=1000,gid=1000
user: cadquery
mem_limit: 512m
memswap_limit: 512m
ulimits:
nproc: 100
nofile:
soft: 1000
hard: 1000
networks:
- cadquery
container_name: cadquery2web_cadquery
networks:
cadquery:
driver: bridge
api:
driver: bridge