-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (41 loc) · 1.27 KB
/
docker-compose.yml
File metadata and controls
45 lines (41 loc) · 1.27 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
version: "3.9"
services:
copier:
build: ../docker
environment: ©-env
SCRIPT_FILE_PATH: "/replacements.sed" # this is also the default value, to use a custom script mount it as volume and change this path
SOURCE_ROOT: "/mnt/src/"
TARGET_ROOT: "/mnt/target/"
# IMPORTANT: The "root" environment variables should end with a '/'
volumes:
- ./replacements.sed:/replacements.sed
- ./volumes/src:/mnt/src:ro
- ./volumes/target:/mnt/target
copier-sha:
build: ../docker
environment:
<<: *copy-env
APPEND_SHA1_SUM: "true"
volumes:
- ./volumes/src:/mnt/src:ro
- ./volumes/target:/mnt/target
- ./replacements-sha.sed:/replacements.sed
copier-delete:
build: ../docker
environment:
<<: *copy-env
# ATTENTION: Requires write permissions on the source volume
DELETE_SOURCE_FILE: "true"
volumes:
- ./volumes/src:/mnt/src
- ./volumes/target:/mnt/target
- ./replacements-delete.sed:/replacements.sed
copier-initial:
build: ../docker
environment:
<<: *copy-env
INITIAL_FIND_PARAMS: "-iname include*"
volumes:
- ./volumes/src:/mnt/src:ro
- ./volumes/target:/mnt/target
- ./replacements-initial.sed:/replacements.sed