-
Notifications
You must be signed in to change notification settings - Fork 1
/
aos-rnd.dockerapp
139 lines (135 loc) · 3.84 KB
/
aos-rnd.dockerapp
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
# This section contains your application metadata.
# Version of the application
version: "3.0-rnd"
# Name of the application
name: aos
# A short description of the application
description: "Advantage Online Shopping"
# Namespace to use when pushing to a registry. This is typically your Hub username.
namespace: "admpresales"
# List of application maitainers with name and email for each
maintainers:
- name: Jason Hrabi
email: jason.hrabi@microfocus.com
# Specify false here if your application doesn't support Swarm or Kubernetes
targets:
swarm: false
kubernetes: false
---
# This section contains the Compose file that describes your application services.
version: '3.5'
services:
config-service:
image: advantageonlineshopping/aos-configservice-dev:aos_config_deployment
ports:
- "${CONFIG_SERVICE_PORT}:${CONFIG_SERVICE_PORT}"
container_name: aos-config-service
restart: always
environment:
- CONFIG_REPO_FILE_SYSTEM=file:///configservice/microservices
- CONFIG_SERVICE_ACTIVE_PROFILE=native
- SERVER_PORT=${CONFIG_SERVICE_PORT}
- POSTGRES_SERVICE_NAME=${POSTGRES_NAME}
- MAIN_SERVICE_NAME=${MAIN_NAME}
- ACCOUNT_SERVICE_NAME=${ACCOUNT_NAME}
- ACTIVE_PROFILE=${ACTIVE_PROFILE}
networks:
demo-net:
gateway:
image: advantageonlineshopping/aos-gateway-dev:aos_config_deployment
ports:
- "${GATEWAY_PORT}:8080"
container_name: aos-gateway
restart: always
environment:
- CONFIG_SERVICE_URI=http://config-service:${CONFIG_SERVICE_PORT}
- ACTIVE_PROFILE=${ACTIVE_PROFILE}
depends_on:
- "config-service"
networks:
demo-net:
aos-postgres:
image: ${POSTGRES_IMAGE}:${POSTGRES_TAG}
ports:
- "${POSTGRES_PORT}:5432"
environment:
- POSTGRES_PORT
container_name: ${POSTGRES_NAME}
networks:
demo-net:
aos-accountservice:
image: ${ACCOUNT_IMAGE}:${ACCOUNT_TAG}
depends_on:
- "config-service"
- "aos-postgres"
ports:
- "${ACCOUNT_PORT}:8080"
environment:
- POSTGRES_IP
- POSTGRES_PORT
- MAIN_IP
- MAIN_PORT
- ACCOUNT_IP
- ACCOUNT_PORT
- PGPASSWORD
- "AGENT_NAME=${ACCOUNT_AGENT_NAME}"
- CONFIG_SERVICE_URI=http://config-service:${CONFIG_SERVICE_PORT}
- ACTIVE_PROFILE=${ACTIVE_PROFILE}
depends_on:
- "aos-postgres"
container_name: ${ACCOUNT_NAME}
networks:
demo-net:
extra_hosts:
- "nimbusserver.aos.com:172.50.0.1"
- "nimbusserver:172.50.0.1"
aos-main:
image: ${MAIN_IMAGE}:${MAIN_TAG}
ports:
- "${MAIN_PORT}:8080"
environment:
- POSTGRES_IP
- POSTGRES_PORT
- MAIN_IP
- MAIN_PORT
- ACCOUNT_IP
- ACCOUNT_PORT
- PGPASSWORD
- "AGENT_NAME=${MAIN_AGENT_NAME}"
- CONFIG_SERVICE_URI=http://config-service:${CONFIG_SERVICE_PORT}
- ACTIVE_PROFILE=${ACTIVE_PROFILE}
depends_on:
- "aos-postgres"
container_name: ${MAIN_NAME}
networks:
demo-net:
extra_hosts:
- "nimbusserver.aos.com:172.50.0.1"
- "nimbusserver:172.50.0.1"
networks:
demo-net:
external: true
---
# This section contains the default values for your application settings.
ACCOUNT_AGENT_NAME: "aos-accountservice-dev"
ACCOUNT_NAME: aos-accountservice
ACCOUNT_IP: nimbusserver.aos.com
ACCOUNT_PORT: "8001"
ACCOUNT_IMAGE: advantageonlineshopping/aos-accountservice-dev
ACCOUNT_TAG: "aos_config_deployment"
MAIN_AGENT_NAME: "aos-main-dev"
MAIN_NAME: aos-main
MAIN_IP: nimbusserver.aos.com
MAIN_PORT: "8002"
MAIN_IMAGE: advantageonlineshopping/aos-main-app-dev
MAIN_TAG: "latest"
PGPASSWORD: Ptr9=k_.A*xx=PGn
POSTGRES_IP: aos-postgres
POSTGRES_NAME: aos-postgres
POSTGRES_PORT: "5432"
POSTGRES_IMAGE: advantageonlineshopping/aos-postgres-dev
POSTGRES_TAG: "latest"
CONFIG_SERVICE_PORT: 8003
GATEWAY_PORT: 8000
ACTIVE_PROFILE: prod
CONFIG_FILE_URI: /configservice/config-repo