-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathdocker-compose-openjdk.yml
More file actions
141 lines (135 loc) · 3.76 KB
/
docker-compose-openjdk.yml
File metadata and controls
141 lines (135 loc) · 3.76 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
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
version: "3"
services:
nginx:
container_name: dcnmp_nginx
build:
context: nginx
args:
NGINX_VERSION: ${NGINX_VERSION}
ALPINE_REPOSITORIES: ${ALPINE_REPOSITORIES}
ALPINE_REPOSITORIES_REPLACE: ${ALPINE_REPOSITORIES_REPLACE}
TZ: ${TZ}
ports:
- "${NGINX_HTTP_HOST_PORT}:80"
- "${NGINX_HTTPS_HOST_PORT}:443"
volumes:
- ${CODE_PATH}:/app/www/:rw
- ${CONF_PATH}/nginx/conf/conf.d:/etc/nginx/conf.d:rw
- ${CONF_PATH}/nginx/conf/vhost:/etc/nginx/vhost:rw
- ${CONF_PATH}/nginx/conf/nginx.conf:/etc/nginx/nginx.conf:ro
- ${LOG_PATH}/nginx:/var/log/nginx/:rw
stdin_open: true
tty: true
restart: always
networks:
- dcnmp
openjdk:
container_name: dcnmp_openjdk
build:
context: openjdk
args:
OPENJDK_VERSION: ${OPENJDK_VERSION}
ALPINE_REPOSITORIES: ${ALPINE_REPOSITORIES}
ALPINE_REPOSITORIES_REPLACE: ${ALPINE_REPOSITORIES_REPLACE}
DEBIAN_REPOSITORIES_REPLACE: ${DEBIAN_REPOSITORIES_REPLACE}
DEBIAN_REPOSITORIES: ${DEBIAN_REPOSITORIES}
OPENJDK_MORE_INSTALLER: ${OPENJDK_MORE_INSTALLER}
MAVEN_VERSION: ${MAVEN_VERSION}
ports:
- "${OPENJDK_HOST_PORT_8080}:8080"
- "${OPENJDK_HOST_PORT_8081}:8081"
- "${OPENJDK_HOST_PORT_8082}:8082"
- "${OPENJDK_HOST_PORT_8083}:8083"
volumes:
- ${JAVA_CODE_PATH}:/app/webapps:rw
- ${CONF_PATH}/openjdk/sh:/app/sh:rw
entrypoint: ["/app/sh/start.sh"]
restart: always
environment:
TZ: "${TZ}"
networks:
- dcnmp
mysql:
container_name: dcnmp_mysql
build:
context: mysql
args:
MYSQL_VERSION: ${MYSQL_VERSION}
ports:
- "${MYSQL_HOST_PORT}:3306"
volumes:
- ${CONF_PATH}/mysql/conf/mysql.cnf:/etc/mysql/conf.d/mysql.cnf:rw
- ${DATA_PATH}/mysql:/var/lib/mysql:rw
- ${LOG_PATH}/mysql:/var/log/mysql:rw
restart: always
environment:
MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD}"
TZ: "${TZ}"
networks:
- dcnmp
mongodb:
container_name: dcnmp_mongodb
build:
context: mongodb
args:
MONGODB_VERSION: ${MONGODB_VERSION}
environment:
MONGO_INITDB_ROOT_USERNAME: "${MONGODB_INITDB_ROOT_USERNAME}"
MONGO_INITDB_ROOT_PASSWORD: "${MONGODB_INITDB_ROOT_PASSWORD}"
TZ: "${TZ}"
volumes:
- ${DATA_PATH}/mongodb:/data/db:rw
- ${DATA_PATH}/mongodb/mongo_key:/mongo:rw
- ${LOG_PATH}/mongodb:/var/log/mongodb/:rw
ports:
- "${MONGODB_HOST_PORT}:27017"
restart: always
stdin_open: true
tty: true
networks:
- dcnmp
command:
--auth
redis:
container_name: dcnmp_redis
build:
context: redis
args:
REDIS_VERSION: ${REDIS_VERSION}
ALPINE_REPOSITORIES: ${ALPINE_REPOSITORIES}
ALPINE_REPOSITORIES_REPLACE: ${ALPINE_REPOSITORIES_REPLACE}
TZ: ${TZ}
ports:
- "${REDIS_HOST_PORT}:6379"
volumes:
- ${CONF_PATH}/redis/conf/redis.conf:/etc/redis.conf:rw
- ${DATA_PATH}/redis:/data:rw
restart: always
stdin_open: true
tty: true
entrypoint: ["redis-server", "/etc/redis.conf"]
networks:
- dcnmp
rabbitmq:
container_name: dcnmp_rabbitmq
build:
context: rabbitmq
args:
RABBITMQ_VERSION: ${RABBITMQ_VERSION}
ports:
- "${RABBITMQ_HOST_PORT_C}:5672"
- "${RABBITMQ_HOST_PORT_S}:15672"
environment:
RABBITMQ_DEFAULT_USER: "${RABBITMQ_DEFAULT_USER}"
RABBITMQ_DEFAULT_PASS: "${RABBITMQ_DEFAULT_PASS}"
TZ: "${TZ}"
volumes:
- ${LOG_PATH}/rabbitmq:/var/log/rabbitmq:rw
- ${DATA_PATH}/rabbitmq:/var/lib/rabbitmq:rw
stdin_open: true
tty: true
restart: always
networks:
- dcnmp
networks:
dcnmp: