This repository has been archived by the owner on Feb 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
122 lines (112 loc) · 3.5 KB
/
docker-compose.yml
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
version: "2"
networks:
default:
monitoring:
# external: true
services:
dukecon-archive:
image: dukecon/dukecon-resources:latest
container_name: dukecon-archive
ports:
- "127.0.0.1:9009:80"
restart: "no"
dukecon-pwa:
image: dukecon/dukecon-pwa:latest
container_name: dukecon-pwa
restart: "no"
dukecon-admin-client:
image: dukecon/dukecon-admin-client:latest
container_name: dukecon-admin-client
restart: "no"
dukecon-postgres:
image: "postgres:9.5"
restart: "no"
container_name: dukecon-postgres
environment:
- "POSTGRES_USER=dukecon"
- "POSTGRES_PASSWORD=dukecon"
networks:
- default
- monitoring
ports:
- "127.0.0.1:9012:5432"
volumes:
- "dukecon_postgres:/var/lib/postgresql/data"
dukecon-server:
image: dukecon/dukecon-server:latest
restart: "no"
container_name: dukecon-server
depends_on:
- dukecon-postgres
links:
- dukecon-postgres:postgres
- dukecon-archive
environment:
- "JAVA_OPTS=-Xms1024m -Xmx2048m -XX:+ExitOnOutOfMemoryError -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/opt/dukecon/heapdumps"
- "SPRING_CONFIG_ADDITIONAL_LOCATION=/opt/dukecon/config"
# tag::spring_profiles_active_server[]
- "SPRING_PROFILES_ACTIVE=postgresql,docker"
# end::spring_profiles_active_server[]
networks:
- default
- monitoring
ports:
- "127.0.0.1:9011:8080"
volumes:
- "./data/dukecon/local/server/cache:/opt/dukecon/cache"
- "./data/dukecon/local/server/config:/opt/dukecon/config"
- "./data/dukecon/local/server/heapdumps:/opt/dukecon/heapdumps"
- "./data/dukecon/local/server/logs:/opt/dukecon/logs"
# - "/etc/ssl/certs/java/cacerts:/etc/ssl/certs/java/cacerts"
dukecon-feedback:
image: dukecon/dukecon-feedback:latest
restart: "no"
container_name: dukecon-feedback
depends_on:
- dukecon-postgres
links:
- dukecon-postgres:postgres
environment:
- "JAVA_OPTS=-XX:+ExitOnOutOfMemoryError -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/opt/dukecon/heapdumps"
- "SPRING_CONFIG_ADDITIONAL_LOCATION=/opt/dukecon/config"
- "SPRING_PROFILES_ACTIVE=postgresql,docker"
networks:
- default
- monitoring
ports:
- "127.0.0.1:9013:8090"
volumes:
- "./data/dukecon/local/feedback/cache:/opt/dukecon/cache"
- "./data/dukecon/local/feedback/config:/opt/dukecon/config"
- "./data/dukecon/local/feedback/heapdumps:/opt/dukecon/heapdumps"
- "./data/dukecon/local/feedback/logs:/opt/dukecon/logs"
# - "/etc/ssl/certs/java/cacerts:/etc/ssl/certs/java/cacerts"
dukecon-edge:
image: dukecon/dukecon-httpd-edge:latest
container_name: dukecon-edge
restart: "no"
links:
- dukecon-pwa
- dukecon-server
- dukecon-feedback
ports:
- "127.0.0.1:9010:80"
volumes:
- "./data/dukecon/local/edge/htdocs:/usr/local/apache2/htdocs"
- "./data/dukecon/local/edge/logs:/usr/local/apache2/logs"
dukecon-edge-with-static:
image: dukecon/dukecon-httpd-edge-with-static:latest
container_name: dukecon-edge-with-static
restart: "no"
links:
- dukecon-pwa
- dukecon-server
- dukecon-feedback
ports:
- "127.0.0.1:9019:80"
volumes:
- "./data/dukecon/local/edge-with-static/htdocs:/usr/local/apache2/htdocs"
- "./data/dukecon/local/edge-with-static/logs:/usr/local/apache2/logs"
volumes:
dukecon_postgres:
external: true