-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
70 lines (70 loc) · 1.79 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
version: '3.6'
services:
ap:
container_name: im_ap
image: rinne-grid/k8s-for-intra-mart:v1.0.0
build:
context: ./ap
args:
arg_http_proxy : ${HTTP_PROXY}
arg_https_proxy : ${HTTPS_PROXY}
IM_STORAGE_ROOT : ${IM_STORAGE_ROOT}
arg_im_java_home : ${IM_JAVA_HOME}
arg_resin_server_name : ${RESIN_SERVER_NAME}
arg_resin_guest_port : ${RESIN_GUEST_PORT}
arg_jdbc_file_name : ${JDBC_FILE_NAME}
arg_jdbc_download_url : ${JDBC_DOWNLOAD_URL}
arg_resin_home : ${RESIN_HOME}
arg_container_jdk : ${CONTAINER_JDK}
deploy:
resources:
limits:
memory: ${AP_MEMORY_SIZE}
ports:
- "${RESIN_HOST_PORT}:${RESIN_GUEST_PORT}"
command: ./bin/resinctl -server app-0 start-with-foreground
volumes:
- ./ap/war:/war
- resin-data:${RESIN_HOME}
- im-storage:${IM_STORAGE_ROOT}
environment:
- HTTP_PROXY
- HTTPS_PROXY
- IM_STORAGE_ROOT
- IM_JAVA_HOME
- RESIN_SERVER_NAME
- RESIN_GUEST_PORT
- JDBC_FILE_NAME
- JDBC_DOWNLOAD_URL
- RESIN_HOME
- CONTAINER_JDK
depends_on:
- "db"
db:
container_name: im_db
deploy:
resources:
limits:
memory: ${DB_MEMORY_SIZE}
image: postgres:10
ports:
- "${DB_HOST_PORT}:${DB_GUEST_PORT}"
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_NAME}
restart: always
volumes:
- postgresql-db:/var/lib/postgresql/data
adminer:
image: adminer
restart: always
ports:
- ${DBADM_HOST_PORT}:${DBADM_GUEST_PORT}
volumes:
resin-data:
driver: local
im-storage:
driver: local
postgresql-db:
driver: local