-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
206 lines (195 loc) · 5.04 KB
/
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
x-depends_on: &default-depends_on
"db":
condition: service_healthy
"mail":
condition: service_started
services:
application:
build:
context: .
dockerfile: Dockerfile
target: oro_dev
args:
UID: ${UID}
GID: ${GID}
command: -- true
env_file: .env
depends_on:
"web":
condition: service_started
"consumer":
condition: service_started
"cron":
condition: service_started
web:
image: $ORO_IMAGE:$ORO_IMAGE_TAG
command: nginx
env_file: .env
ports:
- target: 80
published: 80
mode: host
depends_on:
"php-fpm-app":
condition: service_healthy
"ws":
condition: service_started
networks:
default:
aliases:
- ${ORO_APP_DOMAIN}
volumes:
- ./src:/var/www/oro
- var:/var/www/oro/var
- public_storage:/var/www/oro/public/media
- private_storage:/var/www/oro/var/data
- etc_nginx:/etc/nginx
php-fpm-app:
build:
context: .
dockerfile: Dockerfile
target: oro_dev
args:
UID: ${UID}
GID: ${GID}
command: php-fpm
env_file: .env
healthcheck:
test: "php-fpm-healthcheck"
interval: 5s
timeout: 30s
start_period: 120s
depends_on:
<<: *default-depends_on
volumes:
- ./src:/var/www/oro
- var:/var/www/oro/var
- public_storage:/var/www/oro/public/media
- private_storage:/var/www/oro/var/data
- run_php_fpm:/run/php-fpm
ws:
build:
context: .
dockerfile: Dockerfile
target: oro_dev
args:
UID: ${UID}
GID: ${GID}
command: console gos:websocket:server -v
env_file: .env
environment:
ORO_APP_DOMAIN: ${ORO_APP_DOMAIN}
user: $ORO_USER_RUNTIME
init: true
depends_on:
"php-fpm-app":
condition: service_healthy
volumes:
- ./src:/var/www/oro
- var:/var/www/oro/var
- public_storage:/var/www/oro/public/media
- private_storage:/var/www/oro/var/data
consumer:
build:
context: .
dockerfile: Dockerfile
target: oro_dev
args:
UID: ${UID}
GID: ${GID}
command: console oro:message-queue:consume --memory-limit=500 -v
env_file: .env
user: $ORO_USER_RUNTIME
init: true
depends_on:
"php-fpm-app":
condition: service_healthy
volumes:
- ./src:/var/www/oro
- var:/var/www/oro/var
- public_storage:/var/www/oro/public/media
- private_storage:/var/www/oro/var/data
cron:
build:
context: .
dockerfile: Dockerfile
target: oro_dev
args:
UID: ${UID}
GID: ${GID}
command: cron
env_file: .env
user: ${ORO_USER_RUNTIME:-www-data}
ulimits:
nofile:
soft: 1024
hard: 1048576
depends_on:
"php-fpm-app":
condition: service_healthy
volumes:
- ./src:/var/www/oro
- var:/var/www/oro/var
- public_storage:/var/www/oro/public/media
- private_storage:/var/www/oro/var/data
install:
build:
context: .
dockerfile: Dockerfile
target: oro_dev
args:
UID: ${UID}
GID: ${GID}
command: console oro:install --no-interaction --timeout=3600 --user-name="$ORO_USER_NAME" --user-email="$ORO_USER_EMAIL" --user-firstname="$ORO_USER_FIRSTNAME" --user-lastname="$ORO_USER_LASTNAME" --user-password="$ORO_USER_PASSWORD" --sample-data="$ORO_SAMPLE_DATA" --organization-name="$ORO_ORGANIZATION_NAME" --language=$ORO_LANGUAGE --formatting-code=$ORO_FORMATTING_CODE --application-url="$ORO_APP_PROTOCOL://$ORO_APP_DOMAIN" $ORO_INSTALL_OPTIONS
user: $ORO_USER_RUNTIME
env_file: .env
depends_on:
<<: *default-depends_on
volumes:
- ./src:/var/www/oro
- var_install:/var/www/oro/var
- public_storage:/var/www/oro/public/media
- private_storage:/var/www/oro/var/data
restore: &restore
image: ${ORO_IMAGE_INIT}${ORO_LANGUAGE_SUFFIX-}:$ORO_IMAGE_TAG
command: restore
user: $ORO_USER_RUNTIME
env_file: .env
depends_on:
<<: *default-depends_on
volumes:
- ./src:/var/www/oro
- var_install:/var/www/oro/var
- public_storage:/var/www/oro/public/media
- private_storage:/var/www/oro/var/data
db:
image: docker.io/oroinc/pgsql:${ORO_PG_VER}
labels:
com.symfony.server.service-prefix: ORO_DB
environment:
POSTGRES_ROOT_PASSWORD: ${ORO_DB_ROOT_PASSWORD}
POSTGRES_DB: ${ORO_DB_NAME}
POSTGRES_USER: ${ORO_DB_USER}
POSTGRES_PASSWORD: ${ORO_DB_PASSWORD}
healthcheck:
test: "pg_isready -U$${POSTGRES_USER} -d$${POSTGRES_DB}"
start_period: 60s
volumes:
- db_data:/var/lib/postgresql/data
mail:
image: mailhog/mailhog
hostname: mail
environment:
MH_UI_WEB_PATH: mailcatcher
MH_STORAGE: maildir
MH_MAILDIR_PATH: /home/mailhog/maildir
volumes:
cache: {}
public: {}
private_storage: {}
etc_nginx: {}
run_php_fpm: {}
db_data: {}
var: {}
var_install: {}
public_storage: {}