-
Notifications
You must be signed in to change notification settings - Fork 14
/
docker-compose.yml.www-with-app.patch
52 lines (52 loc) · 1.78 KB
/
docker-compose.yml.www-with-app.patch
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
--- docker-compose.yml 2025-01-07 13:24:30.383332565 +0100
+++ docker-compose.yml.www-with-app 2025-01-07 13:45:34.152136298 +0100
@@ -34,20 +34,10 @@
cap_add:
- DAC_READ_SEARCH
# tty: true
- www:
+ wwwapp:
build:
context: ./src
- dockerfile: Dockerfile.www
- # By default, Dockerfile.www produces application backend in
- # separate container. To run the example application under
- # mod_wsgi directly in the www container, comment out the
- # above dockerfile line and uncomment the following one.
- #
- # dockerfile: Dockerfile.www-with-app
- #
- # If you use Dockerfile.www-with-app, the link to app
- # service and the whole app service definition below can
- # be commented out as well.
+ dockerfile: Dockerfile.www-with-app
volumes:
- ./www-data:/data:Z
# - /sys/fs/cgroup:/sys/fs/cgroup:ro
@@ -56,7 +46,6 @@
links:
- ipa:ipa.example.test
- idp:idp.example.test
- - app:app.example.test
cap_add:
- DAC_READ_SEARCH
# Uncomment the following if you want to be able to access the
@@ -76,17 +65,8 @@
links:
- ipa:ipa.example.test
- idp:idp.example.test
- - www:www.example.test
+ - wwwapp:www.example.test
ports:
- "55022:22"
cap_add:
- DAC_READ_SEARCH
- app:
- build:
- context: ./src
- # dockerfile: Dockerfile.django-dist
- dockerfile: Dockerfile.django-pip
- volumes:
- - ./app-data:/data:Z
- hostname: app.example.test
- stop_signal: KILL