-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (38 loc) · 1.13 KB
/
docker-compose.yml
File metadata and controls
41 lines (38 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
# Docker Compose file for SPLed project
version: '3.8'
services:
spled:
build:
context: .
dockerfile: Dockerfile
container_name: spled-dev
volumes:
# Mount the source code for development
- .:/workspace
# Mount a separate volume for .venv to persist the virtual environment
- spled-venv:/workspace/.venv
# Mount a volume for build artifacts to persist between container runs
- spled-build:/workspace/build
working_dir: /workspace
environment:
- TERM=xterm-256color
# Keep container running for development
tty: true
stdin_open: true
# Optional: expose ports if your application serves content
# ports:
# - "8080:8080"
# Optional: Add a service for running tests
# spled-test:
# build:
# context: .
# dockerfile: Dockerfile
# container_name: spled-test
# volumes:
# - .:/workspace
# - spled-build:/workspace/build
# working_dir: /workspace
# command: ["./build.sh", "--build", "--build-kit", "test", "--variant", "Disco"]
volumes:
spled-build:
spled-venv: