-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (50 loc) · 1.13 KB
/
docker-compose.yml
File metadata and controls
54 lines (50 loc) · 1.13 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
version: '3.8'
services:
build:
build:
context: .
dockerfile: Dockerfile
target: builder
volumes:
- ./target:/app/target
command: cargo build --release --target wasm32-unknown-unknown
production:
build:
context: .
dockerfile: Dockerfile
image: axionvera-network:latest
container_name: axionvera-network-prod
security_opt:
- no-new-privileges:true
read_only: true
cap_drop:
- ALL
cap_add:
- CHOWN
- SETGID
- SETUID
tmpfs:
- /tmp:noexec,nosuid,size=100m
environment:
- NODE_ENV=production
networks:
- axionvera-net
security-scan:
image: aquasec/trivy:latest
container_name: axionvera-security-scan
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./reports:/reports
command: >
image --format json --output /reports/security-report.json
--severity HIGH,CRITICAL axionvera-network:latest
depends_on:
- production
networks:
- axionvera-net
networks:
axionvera-net:
driver: bridge
ipam:
config:
- subnet: 172.20.0.0/16