File tree Expand file tree Collapse file tree 2 files changed +26
-8
lines changed Expand file tree Collapse file tree 2 files changed +26
-8
lines changed Original file line number Diff line number Diff line change @@ -4,18 +4,27 @@ services:
4
4
web :
5
5
build :
6
6
pull : true
7
- context : ${WGER_CODEPATH}
7
+ context : ${WGER_CODEPATH:?set the absolute path to the wger backend code in the .env file or env variable }
8
8
dockerfile : ./extras/docker/development/Dockerfile
9
+ develop :
10
+ watch :
11
+ - action : sync
12
+ path : ${WGER_CODEPATH}/wger
13
+ target : /home/wger/src
14
+ - action : rebuild
15
+ path : ${WGER_CODEPATH}/requirements.txt
16
+ - action : rebuild
17
+ path : ${WGER_CODEPATH}/requirements_dev.txt
9
18
env_file :
10
19
- ../config/prod.env
11
20
- ../config/dev.env
12
21
volumes :
13
22
- type : bind
14
- source : ${WGER_CODEPATH:?set the absolute path to the wger backend code in the .env file or env variable }
23
+ source : ${WGER_CODEPATH}
15
24
target : /home/wger/src
16
25
ports :
17
26
- " 8000:8000"
18
- # We use something here that never ends. The server is started manually
27
+
19
28
command : tail -f /dev/null
20
29
21
30
cache :
@@ -37,7 +46,7 @@ services:
37
46
- POSTGRES_PASSWORD=wger
38
47
- POSTGRES_DB=wger
39
48
volumes :
40
- - postgres-data:/var/lib/postgresql/data/
49
+ - postgres-data-dev :/var/lib/postgresql/data/
41
50
ports :
42
51
- " 5432:5432"
43
52
expose :
@@ -51,4 +60,4 @@ services:
51
60
restart : unless-stopped
52
61
53
62
volumes :
54
- postgres-data :
63
+ postgres-data-dev :
Original file line number Diff line number Diff line change @@ -4,19 +4,28 @@ services:
4
4
web :
5
5
build :
6
6
pull : true
7
- context : ${WGER_CODEPATH}
7
+ context : ${WGER_CODEPATH:?set the absolute path to the wger backend code in the .env file or env variable }
8
8
dockerfile : ./extras/docker/development/Dockerfile
9
+ develop :
10
+ watch :
11
+ - action : sync
12
+ path : ${WGER_CODEPATH}/wger
13
+ target : /home/wger/src
14
+ - action : rebuild
15
+ path : ${WGER_CODEPATH}/requirements.txt
16
+ - action : rebuild
17
+ path : ${WGER_CODEPATH}/requirements_dev.txt
9
18
env_file :
10
19
- ../config/prod.env
11
20
- ../config/dev.env
12
21
- ../config/dev-sqlite.env
13
22
volumes :
14
23
- type : bind
15
- source : ${WGER_CODEPATH:?set the absolute path to the wger backend code in the .env file or env variable }
24
+ source : ${WGER_CODEPATH}
16
25
target : /home/wger/src
17
26
ports :
18
27
- " 8000:8000"
19
- # We use something here that never ends. The server is started manually
28
+
20
29
command : tail -f /dev/null
21
30
22
31
cache :
You can’t perform that action at this time.
0 commit comments