-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (41 loc) · 1.21 KB
/
docker-compose.yml
File metadata and controls
44 lines (41 loc) · 1.21 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
version: '3.8'
services:
# Integration tests: real chpasswd + nmcli argv (run in Docker)
integration:
build:
context: .
dockerfile: Dockerfile.integration
container_name: apollo-api-integration
environment:
- NODE_ENV=production
# Run as root so we can read /etc/shadow and use sudo
user: root
# Run Jest unit test suite (security/reliability fixes, no device needed)
test:
build:
context: .
dockerfile: Dockerfile.test
container_name: apollo-api-test
environment:
- NODE_ENV=test
# Optional: mount source for quick iteration (re-run tests without rebuild)
# volumes:
# - .:/app
# - /app/node_modules # prevent host node_modules overwriting container's
# Full install test with systemd (Armbian-like)
apollo-test:
build: .
container_name: apollo-install-test
privileged: true
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
ports:
- "2222:22" # SSH
- "8080:80" # HTTP (redirected to 3000)
- "3001:3000" # Apollo UI
- "5003:5000" # Apollo API
- "8334:8333" # Bitcoin
- "3334:3333" # Stratum
environment:
- container=docker
restart: "no"