-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·82 lines (79 loc) · 3.07 KB
/
Copy pathdocker-compose.yml
File metadata and controls
executable file
·82 lines (79 loc) · 3.07 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
services:
zope:
build:
context: .
dockerfile: ./docker/base/Dockerfile
image: localhost/zope:${ZOPE_TAG:-latest}
depends_on:
- zeo
stop_grace_period: 1s # SIGKILL after 1s, as zope is always taking the full 10 seconds
command: runwsgi --debug --verbose etc/zope.ini debug-mode=on http_port=80
ports:
- 80:80
volumes:
- ./docker/zope/etc/:/home/zope/etc/
- ./docker/zope/var/:/home/zope/var/
# To share external methods between Zope/ZEO/Docker clients folder needs to be mounted
- ./docker/zope/Extensions/:/home/zope/Extensions/
# source code
- ./tests:/home/zope/tests
- ./test_output:/home/zope/test_output
- ./selenium_tests:/home/zope/selenium_tests
develop:
watch:
# sync+restart
- action: sync+restart
path: ./Products
target: /home/zope/Products
# rebuild
- action: rebuild
path: docker/base/Dockerfile
- action: rebuild
path: requirements.txt
- action: rebuild
path: requirements-zeo.txt
- action: rebuild
path: requirements-full.txt
- action: rebuild
path: requirements-dev.txt
- action: rebuild
path: setup.py
- action: rebuild
path: setup.cfg
# allow attaching to the container to debug with `breakpoint()`
stdin_open: true
tty: true
zope-debug:
build:
context: .
dockerfile: ./docker/base/Dockerfile.debug
args:
BASE_IMAGE: localhost/zope:${ZOPE_TAG:-latest}
image: localhost/zope-debug:latest
depends_on:
- zeo
stop_grace_period: 1s # SIGKILL after 1s, as zope is always taking the full 10 seconds
command: code-server --bind-addr 0.0.0.0:8080 --auth none /home/zope
ports:
- 8080:8080 # VSCode-Server
- 5678:5678 # debugpy (vscode remote debugger)
- 8085:8085 # Running Default Zope-Server on ZEO
- 8086:8086 # Provided for Debugger-Zope-Instance
volumes:
- ./docker/zope/etc/:/home/zope/etc/
- ./docker/zope/var/:/home/zope/var/
# To share external methods between Zope/ZEO/Docker clients folder needs to be mounted
- ./docker/zope/Extensions/:/home/zope/Extensions/
# source code
- ./tests:/home/zope/tests
- ./test_output:/home/zope/test_output
- ./selenium_tests:/home/zope/selenium_tests
zeo:
build:
context: .
dockerfile: ./docker/base/Dockerfile
image: localhost/zope:latest
command: runzeo --configure etc/zeo.conf
volumes:
- ./docker/zeo/etc/:/home/zope/etc/
- ./docker/zeo/var/:/home/zope/var/